示例#1
0
        public async Task <ClientsDTO> GetClientsById(int IdClients)
        {
            var clients = await _ClientsService.GetClientsById(IdClients);

            var resource = _mapper.Map <Clients, ClientsDTO>(clients);

            return(resource);
        }
示例#2
0
        public async Task <IActionResult> GetClientById(int id)
        {
            var cli = await _clientsService.GetClientsById(id);

            return(Ok(cli));
        }