Ejemplo n.º 1
0
        public HttpResponseMessage GetAllDelivery()
        {
            var countries = deliveryRepository.GetAllDelivery();
            var formatter = RequestFormat.JsonFormaterString();

            return(Request.CreateResponse(HttpStatusCode.OK, countries, formatter));
        }
        public IActionResult GetAll()
        {
            var des    = _repo.GetAllDelivery();
            var result = Mapper.Map <IEnumerable <DeliveryDto> >(des);

            return(Ok(result));
        }