Ejemplo n.º 1
0
        private PhysicalService CreatePhysicalService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new PhysicalService(userId);

            return(service);
        }
Ejemplo n.º 2
0
        // GET: Physical
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new PhysicalService(userId);
            var model   = service.GetPhysicals();

            return(View(model));
        }