public ActionResult Industry(IndustryMaster industrymaster) { var p = _IIndustryMaster.Save(industrymaster); TempData["industry"] = p.IsSuccess.ToString(); return(RedirectToAction("industry")); }
public ActionResult UpdateIndustry(FormCollection fc) { IndustryMaster IndustryMaster = new IndustryMaster(); IndustryMaster.Name = fc["IndustryName"]; IndustryMaster.Id = fc["IndustryId"] == "" ? 0 : int.Parse(fc["IndustryId"]); if (IndustryMaster.Id > 0) { _IIndustryMaster.Save(IndustryMaster); } return(RedirectToAction("industry")); }