コード例 #1
0
        private RegistryEventService CreateRegistryEventService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new RegistryEventService(userId);

            return(service);
        }
コード例 #2
0
        // GET: RegistryEvent
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new RegistryEventService(userId);
            var model   = service.GetRegistryEvents();

            return(View(model));
        }