public ActionResult Edit(int id) { var role = Databases.CreateDatabase().GetRole(id); return(View(new RoleModel() { Id = role.Id, Name = role.Name })); }
public ActionResult Edit(int id) { var user = Databases.CreateDatabase().GetUser(id); return(View(new UserModel() { Id = user.Id, Name = user.Name })); }
public ActionResult Index() { var roles = from r in Databases.CreateDatabase().GetRoles() select new RoleModel() { Id = r.Id, Name = r.Name }; return(View(roles)); }
public ActionResult Index() { var users = from u in Databases.CreateDatabase().GetUsers() select new UserModel() { Id = u.Id, Name = u.Name }; return(View(users)); }