public ActionResult GetAllAccountByRole(int IdRole) { ViewBag.id = IdRole; int userid = user.Id; int roleid = user.Roleid; int branchId = user.BranchId; var db = new RoleBusiness(); var result = db.ListUserByRoleId(roleid, userid, branchId, IdRole); return(PartialView(result)); }