public List <GetCollaboratorDto> GetAll()
 {
     return(_collaboratorRepository.GetAll());
 }
Exemplo n.º 2
0
 public IEnumerable <Collaborator> GetAll()
 {
     return(_collaboratorRepository.GetAll());
 }
Exemplo n.º 3
0
 public IEnumerable <CollaboratorViewModel> list()
 {
     return(_mapper.Map <IEnumerable <CollaboratorViewModel> >(_collaboratorRepository.GetAll()));
 }
Exemplo n.º 4
0
        public async Task <IActionResult> Index()
        {
            var collaboratorsViewModel = _mapper.Map <IEnumerable <CollaboratorViewModel> >(await _collaboratorRepository.GetAll());

            return(View(collaboratorsViewModel));
        }
Exemplo n.º 5
0
        private async Task <CustomerViewModel> FillDependency(CustomerViewModel customerViewModel)
        {
            var collaborators = _mapper.Map <IEnumerable <CollaboratorViewModel> >(await _collaboratorRepository.GetAll());
            //customerViewModel.Collaborators = collaborators;

            var companies = _mapper.Map <IEnumerable <CompanyViewModel> >(await _companyRepository.GetAll());

            customerViewModel.Companies = companies;

            return(customerViewModel);
        }