public void InsertBusinessLicense(BusinessLicenseDTO businessLicense)
 {
     BusinessLicense newBusinessLicense = BusinessLicenseFactory.CreateBusinessLicense();
     BusinessLicenseFactory.SetBusinessLicense(newBusinessLicense, businessLicense.Name,
         businessLicense.Description, businessLicense.IssuedUnit, businessLicense.IssuedDate,
         businessLicense.ValidMonths, businessLicense.ExpireDate, businessLicense.State, businessLicense.FileName,
         businessLicense.FileContent);
     _businessLicenseRepository.Add(newBusinessLicense);
 }
 public void ModifyBusinessLicense(BusinessLicenseDTO businessLicense)
 {
     BusinessLicense updateBusinessLicense = _businessLicenseRepository.Get(businessLicense.Id); //获取需要更新的对象。
     BusinessLicenseFactory.SetBusinessLicense(updateBusinessLicense, businessLicense.Name,
         businessLicense.Description, businessLicense.IssuedUnit, businessLicense.IssuedDate,
         businessLicense.ValidMonths, businessLicense.ExpireDate, businessLicense.State, businessLicense.FileName,
         businessLicense.FileContent);
     _businessLicenseRepository.Modify(updateBusinessLicense);
 }
 public void DeleteBusinessLicense(BusinessLicenseDTO businessLicense)
 {
     BusinessLicense deleteBusinessLicense = _businessLicenseRepository.Get(businessLicense.Id); //获取需要删除的对象。
     _businessLicenseRepository.Remove(deleteBusinessLicense); //删除经营证照。
 }