public List <ClientModel> GetClients() { IClientRepository clientRepository = new ClientRepository(); var clients = clientRepository.GetAll().ToList(); return(MappingExtensions.MapList <Client, ClientModel>(clients)); }
public List <PracticeAreaModel> GetAll() { IPracticeAreaRepository practiceAreaRepository = new PracticeAreaRepository(); var practiceAreaModels = practiceAreaRepository.GetAll().ToList(); return(MappingExtensions.MapList <PracticeArea, PracticeAreaModel>(practiceAreaModels)); }
public List <FormTypeModel> GetAll() { IFormTypeRepository formTypeRepository = new FormTypeRepository(); var formTypes = formTypeRepository.GetAll().ToList(); return(MappingExtensions.MapList <FormType, FormTypeModel>(formTypes)); }
public List <CategoryModel> GetAll() { ICategoryRepository categoryRepository = new CategoryRepository(); var categoryModels = categoryRepository.GetAll().ToList(); return(MappingExtensions.MapList <Category, CategoryModel>(categoryModels)); }
public void Add(ErrorLogModel errorLogModel) { IErrorLogRepository errorLogRepo = new ErrorLogRepository(); errorLogRepo.Add(MappingExtensions.MapTo <ErrorLogModel, ErrorLog>(errorLogModel)); }