public IActionResult DeleteAd(int id) { var ad = _context.Advertisement.FirstOrDefault(x => x.Id == id); _context.Remove(ad); _context.SaveChanges(); return(Ok()); }
public IActionResult RemoveRequest(int id) { var request = _context.TripRequest.FirstOrDefault(x => x.Id == id); _context.Remove(request); _context.SaveChanges(); return(Ok()); }