public ViewResult Update(int roleid) { RoleMaster obj = new RoleMaster(); if (roleid > 0) { obj.CMD = "Update"; obj = obj.GetSingleRole(roleid); } return(View("UserRole", obj)); }