Exemplo n.º 1
0
        public async Task <ActionResult <ClientViewModel> > GetClient(string id)
        {
            Client client = await _clientsRepository.FindByIdAsync(id);

            if (client == null)
            {
                return(NotFound($"El cliente con identificación {id} no se encuentra registrado."));
            }

            return(_mapper.Map <ClientViewModel>(client));
        }