Esempio n. 1
0
        public async Task <IActionResult> GetEspecialClients()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var listClient = await _clientAppService.GetAllAsync();

            var listClientEspecial = _clientAppService.GetEspecialClient(listClient);

            var listClientViewModel = _mapper.Map <IEnumerable <Client>, List <ClientViewModel> >(listClientEspecial);

            return(Ok(listClientViewModel));
        }