Example #1
0
 public bool Insert(int BusinessEntityId, bool NameStyle, int EmailPromotion, Guid RowGuid, DateTime ModifiedDate, DateTime CreatedDate, string NationalityCode, string Gender, DateTime DateofBirth, string PersonImage)
 {
     PersonDAC personComponent = new PersonDAC();
     int id = 0;
     Common.BusinessEntityLogic.Insert(ref id, new Guid(), DateTime.Now);
     return personComponent.InsertNewPerson( id,  NameStyle,  EmailPromotion,  new Guid(),  DateTime.Now,  DateTime.Now,  NationalityCode,Gender,DateofBirth,PersonImage);
 }
Example #2
0
 public bool Insert(ref int BusinessEntityId, bool NameStyle, int EmailPromotion, Guid RowGuid, DateTime ModifiedDate, DateTime CreatedDate, string NationalityCode, string Title, string FirstName, string MiddleName, string LastName, string DisplayName, string Suffix, string Gender, DateTime DateofBirth, string PersonImage)
 {
     PersonDAC personComponent = new PersonDAC();
      Common.BusinessEntityLogic.Insert(ref BusinessEntityId, new Guid(), DateTime.Now);
      personComponent.InsertNewPerson(BusinessEntityId, NameStyle, EmailPromotion, new Guid(), DateTime.Now, DateTime.Now, NationalityCode,Gender,DateofBirth,PersonImage);
      PersonLanguagesDAC plangComponent = new PersonLanguagesDAC();
      int plangId = 0;
      return plangComponent.InsertNewPersonLanguages(ref plangId, BusinessEntityId, Common.DefaultLanguage.LanguageId, Title, FirstName, MiddleName, LastName, Suffix, DisplayName);
 }
Example #3
0
 public bool Insert(Person person)
 {
     PersonDAC personComponent = new PersonDAC();
     if (person.PersonDefaultLanguage != null)
     {
         int id = 0;
         Common.BusinessEntityLogic.Insert(ref id, new Guid(), DateTime.Now);
         personComponent.InsertNewPerson(id, person.NameStyle, person.EmailPromotion, new Guid(), DateTime.Now, DateTime.Now, person.NationalityCode,person.Gender,person.DateofBirth,person.PersonImage);
         Common.PersonLanguagesLogic.Insert(id, Common.DefaultLanguage.LanguageId, person.Title, person.FirstName, person.MiddleName, person.LastName, person.Suffix, person.DisplayName);
         person.BusinessEntityId = id;
         return true;
     }
     return false;
 }