Esempio n. 1
0
 public IHttpActionResult SaveNewGallery(HttpRequestMessage request, [FromBody] INewPost post)
 {
     if (post.name.Length > 0)
     {
         db_Gall.Add(new Gallery
         {
             GalleryName = post.name
         });
     }
     return(Ok());
 }