public IActionResult Delete(string id) { var rent = _context.Get(id); if (rent == null) { return(NotFound()); } _context.Remove(rent.Id); return(NoContent()); }