public ActionResult SetOstiNumber(SetOstiNumberModel model) { if (!ModelState.IsValid) { return(View(model)); } model.Save(); return(RedirectToAction("Index", new { id = model.SortMainId })); }
public ActionResult SetOstiNumber(int?id) { if (!id.HasValue) { return(RedirectToAction("Index", new { id })); } var model = new SetOstiNumberModel(id.Value); return(View(model)); }