// GET: JoiningTable public ActionResult Index() { var service = new JoiningTableService(); var model = service.GetJoiningTable(); return(View(model)); }
public ActionResult Edit(int id) { var service = CreateUserService(); var detail = service.GetUserById(id); var service2 = new JoiningTableService(); ViewBag.Games = service2.GetJoiningTable(); var model = new UserEdit { UserID = detail.UserID, Name = detail.Name, GamerTag = detail.GamerTag, Email = detail.Email, Age = detail.Age, PlatformType = detail.PlatformType, Genres = detail.Genres, WantsCrossplay = detail.WantsCrossplay, JoiningTables = detail.JoiningTables }; return(View(model)); }
private JoiningTableService CreateJoiningTableService() { var joiningTableService = new JoiningTableService(); return(joiningTableService); }