public ActionResult UserInfo(UserInfoModel model) { model.Categories = this.GetCategories(); return View(model); }
public ActionResult UserInfo() { var u = new UserInfoModel { FirstName = "first name", LastName = "last name", UserID = 3, Categories = this.GetCategories()}; return View(u); }