public ActionResult SaveLimit(int?limitid, int?productid, int?pmenuId, string modelId) { var obj = new ProductMenuLimit() { ProductId = productid.GetValueOrDefault(), PMenuId = pmenuId.GetValueOrDefault(), Type = 3, Status = true, ModuleId = modelId }; if (limitid.HasValue) { obj = ProductModelVerService.GetLimit(limitid.Value, modelId); } if (pmenuId.HasValue) { var pm = ProductModelVerService.GetMenu(pmenuId.Value, modelId); if (pm != null) { ViewBag.ParentMenu = pm.Title; } } return(View(obj.IsNullThrow())); }
public ActionResult SaveLimit(ProductMenuLimit menu) { var re = ProductModelVerService.SaveMenu(menu); return(new OpActionResult(re)); }