private RegistryEventService CreateRegistryEventService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new RegistryEventService(userId); return(service); }
// GET: RegistryEvent public ActionResult Index() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new RegistryEventService(userId); var model = service.GetRegistryEvents(); return(View(model)); }