Base solution for your next web application

Activities of "elvis.gene"

If issue related with ABP Framework

  • What is ABP Framework version? 7.1.0

I am working on a Xamarin.Forms project that is comminicating with a .NET api.

To pass an Id to a service method, I use NullableIdDto as a simple integer doesn't work. An example is below

        public async Task<bool> DeleteUserLocationByID(long id)
        {
            var input = new NullableIdDto<long>(id);
            return await _apiClient.DeleteAsync<bool>(GetEndpoint(nameof(DeleteUserLocationByID)), input);
        }

Now, I have a method that needs a string to be passed to an api method. That string is email address. What kind of string object should I pass?

   public async Task<UserLocationShareDto> CreateUserLocationShare(string email)
    {
        return await _apiClient.PostAsync<UserLocationShareDto>(GetEndpoint(nameof(CreateUserLocationShare)), email);
    }
Showing 1 to 1 of 1 entries