internal async Task <ModelsShared.Photo> AddNewPhoto(ModelsShared.Photo ph) { var clientPhoto = new Client("Photos"); var res = await clientPhoto.PostAsync <ModelsShared.Photo>("", ph); return(res); }
internal async Task <bool> DeletePhoto(ModelsShared.Photo selectedPhoto) { var clientPhoto = new Client("Photos"); var res = await clientPhoto.Delete <bool>("DeletePhoto", selectedPhoto.Id); return(res); }