示例#1
0
        public async Task <ActionResult <Rentals> > PostRentals(List <CreateRental> items)
        {
            var rental = await _rentalsService.MapAndCreateRental(items);

            if (rental == null)
            {
                return(NotFound());
            }

            return(Created("GetRentals", rental));
        }