Example #1
0
        public ActionResult SetOstiNumber(SetOstiNumberModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            model.Save();

            return(RedirectToAction("Index", new { id = model.SortMainId }));
        }
Example #2
0
        public ActionResult SetOstiNumber(int?id)
        {
            if (!id.HasValue)
            {
                return(RedirectToAction("Index", new { id }));
            }

            var model = new SetOstiNumberModel(id.Value);

            return(View(model));
        }