private BetInfoService CreateBetInfoService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new BetInfoService(userId); return(service); }
// GET: BetInfo public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new BetInfoService(userId); var model = service.GetBetsInfo(); return(View(model)); }