Ejemplo n.º 1
0
 public ActionResult CreateAlbum(CreateAlbumViewModel album)
 {
     if (!ModelState.IsValid)
     {
         return(View());
     }
     if (GalleryService.CreateAlbum(album.ToEntity()))
     {
         return(RedirectToAction("Index", "Gallery"));
     }
     return(View());
 }