Ejemplo n.º 1
0
        // GET: AccountOffers
        public ActionResult Index()
        {
            AccountOfferService _accountOfferService = CreateAccountOfferService();
            var model = _accountOfferService.GetAccountOffers();

            return(View(model.ToList()));
        }
Ejemplo n.º 2
0
        private AccountOfferService CreateAccountOfferService()
        {
            var userId = Guid.Parse(User.Identity.GetUserId());
            var _accountOfferService = new AccountOfferService(userId);

            return(_accountOfferService);
        }