public ActionResult Index() { List <IndexViewModel> list = new List <IndexViewModel>(); foreach (Customer c in _custManager.GetAll()) { list.Add(IndexViewModel.CustomerToIVM(c)); } return(View(list)); }
public ActionResult Delete(string email) { Customer c = _custManager.GetAll().Find(rc => rc.Email == email); return(View(IndexViewModel.CustomerToIVM(c))); }
public async Task <ActionResult> Index() { Customer c = await UserManager.FindByEmailAsync(User.Identity.Name); return(View(IndexViewModel.CustomerToIVM(c))); }