Example #1
0
 public Continent CreateObject(Continent continent)
 {
     continent.Errors = new Dictionary <String, String>();
     if (!isValid(_validator.VCreateObject(continent, this)))
     {
         continent.MasterCode = _repository.GetLastMasterCode(continent.OfficeId) + 1;
         continent            = _repository.CreateObject(continent);
     }
     return(continent);
 }