public ActionResult Create(NSImageCreateViewModel model) { if (this.ModelState.IsValid) { if (this.NSImageService.SaveImageToDB(model)) { return this.RedirectToAction("Index"); } } return this.View(model); }
public ActionResult Create() { var model = new NSImageCreateViewModel(); return this.View(model); }