Ejemplo n.º 1
0
        public ActionResult Index()
        {
            List <IndexViewModel> list = new List <IndexViewModel>();

            foreach (Customer c in _custManager.GetAll())
            {
                list.Add(IndexViewModel.CustomerToIVM(c));
            }
            return(View(list));
        }
Ejemplo n.º 2
0
        public ActionResult Delete(string email)
        {
            Customer c = _custManager.GetAll().Find(rc => rc.Email == email);

            return(View(IndexViewModel.CustomerToIVM(c)));
        }
Ejemplo n.º 3
0
        public async Task <ActionResult> Index()
        {
            Customer c = await UserManager.FindByEmailAsync(User.Identity.Name);

            return(View(IndexViewModel.CustomerToIVM(c)));
        }