private BoroughService CreateBoroughService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new BoroughService(userId); return(service); }
public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new BoroughService(userId); var model = service.GetBoroughs(); return(View(model)); }