예제 #1
0
 public ActionResult Edit(int id, int pid = 0)
 {
     try
     {
         RoleModal model = objRolesBLL.GetRoleById(id);
         int       take  = 10;
         int       skip  = take * pid;
         model.PageID  = pid;
         model.Current = pid + 1;
         ViewBag.c     = model.PageID;
         if (model != null)
         {
             return(View(model));
         }
         Session["Error"] = "Record does not exist";
         return(View(new RoleModal()));
     }
     catch (Exception e)
     {
         throw e;
     }
 }