示例#1
0
        public async Task <IHttpActionResult> MovePhoto([FromBody] MovePhotoToGallery moveInfo)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            var res = GalleryService.AddPhoto(moveInfo.GalleryId, await GetCurrentId(), moveInfo.PhotoId);

            return(Ok(new { Success = res }));
        }