Example #1
0
        public IActionResult Deliver(int rentId, DateTime dateTime)
        {
            dateTime = DateTime.Now;
            var result = _rentalManager.Deliver(rentId, dateTime);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }