Пример #1
0
        public ActionResult Create(NSImageCreateViewModel model)
        {
            if (this.ModelState.IsValid)
            {
                if (this.NSImageService.SaveImageToDB(model))
                {
                    return this.RedirectToAction("Index");
                }
            }

            return this.View(model);
        }
Пример #2
0
 public ActionResult Create()
 {
     var model = new NSImageCreateViewModel();
     return this.View(model);
 }