Exemplo n.º 1
0
 private Core.Entities.CustomerContact MapCustomerContactToCoreCustomerContact(DMCustomerContact customerContact, Guid userGuid)
 {
     customerContactEntity                 = new Entities.CustomerContact();
     customerContactEntity.ContactGuid     = Guid.NewGuid();
     customerContactEntity.FirstName       = customerContact.FirstName.Trim();
     customerContactEntity.MiddleName      = customerContact.MiddleName.Trim();
     customerContactEntity.LastName        = customerContact.LastName.Trim();
     customerContactEntity.PhoneNumber     = customerContact.PhoneNumber;
     customerContactEntity.AltPhoneNumber  = customerContact.AltPhoneNumber;
     customerContactEntity.EmailAddress    = customerContact.EmailAddress;
     customerContactEntity.AltEmailAddress = customerContact.AltEmailAddress;
     customerContactEntity.CustomerGuid    = customerContact.CustomerGuid;
     customerContactEntity.ContactTypeGuid = customerContact.ContactTypeGuid;
     customerContactEntity.CreatedOn       = DateTime.UtcNow;
     customerContactEntity.IsActive        = true;
     customerContactEntity.IsDeleted       = false;
     customerContactEntity.CreatedBy       = userGuid;
     customerContactEntity.UpdatedBy       = userGuid;
     customerContactEntity.UpdatedOn       = DateTime.UtcNow;
     return(customerContactEntity);
 }
Exemplo n.º 2
0
 private bool UpdateCustomerContactToDb(Core.Entities.CustomerContact customerContact)
 {
     _customerContactService.Edit(customerContact);
     return(true);
 }