Пример #1
0
        public async Task <Repartidor> GetRepartidorAsync(int id)
        {
            var repartidorEntity = await ARBRepository.GetRepartidorAsync(id);

            if (repartidorEntity == null)
            {
                throw new NotFoundItemException("Repartidor not found");
            }
            var res = mapper.Map <Repartidor>(repartidorEntity);

            return(res);
        }