Пример #1
0
        internal async Task <ModelsShared.Photo> AddNewPhoto(ModelsShared.Photo ph)
        {
            var clientPhoto = new Client("Photos");
            var res         = await clientPhoto.PostAsync <ModelsShared.Photo>("", ph);

            return(res);
        }
Пример #2
0
        internal async Task <bool> DeletePhoto(ModelsShared.Photo selectedPhoto)
        {
            var clientPhoto = new Client("Photos");
            var res         = await clientPhoto.Delete <bool>("DeletePhoto", selectedPhoto.Id);

            return(res);
        }