示例#1
0
        public async Task <IActionResult> GetAllShippings()
        {
            var shippings = await repository.GetAllShippings();

            if (shippings == null)
            {
                return(NotFound("There are no any shippings."));
            }

            var shippingsResource = mapper.Map <List <Shipping>, List <ShippingResource> >(shippings);

            return(Ok(shippingsResource));
        }