示例#1
0
        public IActionResult DeleteRent(int id)
        {
            var userName = User.Identity.Name;
            var rent     = _repo.GetRent(userName, id);

            if (rent == null)
            {
                return(NotFound());
            }
            _repo.DeleteRent(userName, id);
            return(NoContent());
        }
示例#2
0
 public bool DeleteRent(int id)
 {
     return(rentRepository.DeleteRent(id));
 }