Exemple #1
0
 public void SaveByID(Data.CompanyStructureDefine _companyStructureDefine)
 {
     try
     {
         Guid i = Business.GetCompanyStructureDefineBusiness().GetAll().Where(r => r.ID == _companyStructureDefine.ID).Select(r => r.ID).FirstOrDefault();
         if (i == Guid.Empty)
         {
             this.Insert(_companyStructureDefine);
         }
         else
         {
             this.SubmitChanges();
         }
     }
     catch
     {
         throw;
     }
 }