Example #1
0
        private SalesRepService CreateSalesRepService()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new SalesRepService(userId);

            return(service);
        }
Example #2
0
        // GET: SalesRep
        public ActionResult Index()
        {
            var userId  = Guid.Parse(User.Identity.GetUserId());
            var service = new SalesRepService(userId);
            var model   = service.GetSalesRep();

            return(View(model));
        }