public ActionResult Edit(UserViewModel model) { var userid = (long)Session["userid"]; ViewBag.ListRole = new SelectList(RoleRepo.All(null), "id", "name");//untuk dropdownlist ResponResultViewModel result = UserRepo.Update(model, userid); return(Json(new { success = result.Success, message = result.Message, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(long id) { ViewBag.RoleList = new SelectList(RoleRepo.All(), "Id", "Name"); ViewBag.rdyes = null; ViewBag.rdno = null; if (UserRepo.GetMobile_flag(id)) { ViewBag.rdyes = "checked"; } else { ViewBag.rdno = "checked"; } return(PartialView("_Edit", UserRepo.ById(id))); }
//Edit public ActionResult Edit(int id) { ViewBag.ListRole = new SelectList(RoleRepo.All(null), "id", "name");//untuk dropdownlist return(PartialView("_Edit", UserRepo.GetUser(id))); }
//Create public ActionResult Create() { ViewBag.ListRole = new SelectList(RoleRepo.All(null), "id", "name");//untuk dropdownlist return(PartialView("_Create")); }
public ActionResult Create() { ViewBag.RoleList = new SelectList(RoleRepo.All(), "Id", "Name"); return(PartialView("_Create")); }
public ActionResult Search(long id = 0) { ViewBag.RoleList = new SelectList(RoleRepo.All(), "id", "name"); return(PartialView("_Search", MenuAccessRepo.GetBySearch(id))); }
public ActionResult List() { return(PartialView("_List", RoleRepo.All())); }
// List public ActionResult List(string search) { return(PartialView("_List", RoleRepo.All(search))); }
// GET: Role public ActionResult Index(string search) { return(View(RoleRepo.All(search))); }
public ActionResult RoleList() { return(PartialView("_RoleList", RoleRepo.All(null))); }
public ActionResult Create() { ViewBag.RoleList = new SelectList(RoleRepo.All(null), "id", "name"); ViewBag.MenuList = new SelectList(MenuRepo.All(null), "id", "title"); return(PartialView("_Create")); }
// GET: MenuAccess public ActionResult Index() { ViewBag.RoleList = new SelectList(RoleRepo.All(null), "id", "name"); return(View(MenuAccessRepo.All())); }