public int Delete(int Id) { var entity = _context.Vehicles.Find(Id); _context.Remove(entity); return(Id); }
public int Delete(int Id) { var entity = _context.Establishments.Find(Id); _context.Remove(entity); return(Id); }