Exemple #1
0
 public ActionResult UserRole(RoleMaster obj, string SubmitBtn)
 {
     obj.CMD = SubmitBtn == "Save" ? "Save" : SubmitBtn == "Update" ? "Update" : "Delete";
     obj.hid = Convert.ToInt32(Session["hospital"].ToString());
     string[] str = obj.PerformAction();
     ViewBag.msg = str[1];
     return(View(obj));
 }