private ServiceEstimateService CreateServiceEstimateService() { var _bayId = Guid.Parse(User.Identity.GetUserId()); var service = new ServiceEstimateService(_bayId); return(service); }
// GET: ServiceEstimate public ActionResult Index() { var _bayId = Guid.Parse(User.Identity.GetUserId()); var service = new ServiceEstimateService(_bayId); var model = service.GetServiceEstimates(); return(View(model)); }