private DiningService CreateDiningService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DiningService(userId); return(service); }
// GET: Dining public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new DiningService(userId); var model = service.GetDinings(); return(View(model)); }