Пример #1
0
        public IActionResult AddRent(Rental rent)
        {
            var result = _rentManager.Add(rent);

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