public ActionResult Edit(int id) { if (Session["ClientId"] != null) { if (!Roles.IsUserInRole("CenterManager")) { if (Session["RegionId"] != null) { ViewData["Branches"] = Utilities.GetBranchNameList((int)Session["ClientId"], (int)Session["RegionId"]); } else { ViewData["Branches"] = Utilities.GetBranchNameList((int)Session["ClientId"]); } } } ViewData.Model = AssetModels.GetAssetDetailsById(id); return(View()); }
public ActionResult Details(int id) { ViewData.Model = AssetModels.GetAssetDetailsById(id); return(View()); }