예제 #1
0
        public ActionResult <List <ClienteDTO> > Get()
        {
            try
            {
                var ret = _clientesService.GetAllClientes();

                var retDTO = _mapper.Map <List <ClienteDTO> >(ret);

                return(retDTO);
            }
            catch (Exception ex)
            {
                return(BadRequest(new { message = ex.Message }));
            }
        }