public AccountManager() { try { _repo = AccountRepositoryFactory.GetAccountRepository(); } catch (Exception ex) { } }
public List <MakeViewModel> GetMakeDetails() { var list = new List <MakeViewModel>(); var accountRepo = AccountRepositoryFactory.GetAccountRepository(); foreach (var make in makeList) { var makeModel = new MakeViewModel(); makeModel.MakeId = make.MakeId; makeModel.MakeName = make.MakeName; makeModel.DateAdded = make.DateAdded; makeModel.UserEmail = "abc"; list.Add(makeModel); } return(list); }
public AccountManager() { _repo = AccountRepositoryFactory.GetAccountRepository(); }