Пример #1
0
 public CompanyInfo CreateObject(CompanyInfo companyInfo)
 {
     companyInfo.Errors = new Dictionary <String, String>();
     return(_validator.ValidCreateObject(companyInfo, this) ? _repository.CreateObject(companyInfo) : companyInfo);
 }
Пример #2
0
 public CompanyInfo CreateObject(CompanyInfo companyInfo)
 {
     return(_validator.ValidCreateObject(companyInfo, this) ? _repository.CreateObject(companyInfo) : companyInfo);
 }