Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 public ActionResult Details(int id)
 {
     ViewData.Model = AssetModels.GetAssetDetailsById(id);
     return(View());
 }