public void EditAbsents(Absents absents) { using (IDataProvider provider = base.CreateDataProvider()) using (IAbsentsRepository repository = provider.CreateAbsentsRepository()) repository.Update(absents); }
public void EditAbsents(Absents absents) { using (IBusinessProvider provider = base.CreateBusinessProvider()) using (IAbsentsBusinessProvider prov = provider.CreateAbsentsBusinessProvider()) prov.EditAbsents(absents); }