public void Delete(RateMark rate) { using (var db = _provider.CreateDBContext()) db.OutboxRates(r => r.ID == rate.ID).Delete(); Refresh(); }