예제 #1
0
 public CompanyProfileCustom(CompanyProfile companyProfile)
 {
     Phone = new ContactDetail { FieldName = "Phone" };
     Fax = new ContactDetail { FieldName = "Fax" };
     Website = new ContactDetail { FieldName = "Website" };
     Facebook = new ContactDetail { FieldName = "Facebook", FieldUrl = "www.facebook.com" };
     Twitter = new ContactDetail { FieldName = "Twitter", FieldUrl = "www.twitter.com" };
     Google = new ContactDetail { FieldName = "Google", FieldUrl = "www.google.com" };
     LinkedIn = new ContactDetail { FieldName = "LinkedIn", FieldUrl = "www.linkedin.com" };
     Skype = new ContactDetail { FieldName = "Skype", FieldUrl = "www.skype.com" };
 }
예제 #2
0
 public bool UpdateContactDetail(ContactDetail contactDetail)
 {
     try
     {
         contactDetail.State = ObjectState.Modified;
         contactRep.UpdateOperation(contactDetail);
         contactDetail.State = ObjectState.Unchanged;
         return true;
     }
     catch (Exception ex)
     {
         var rr = ex.Message;
         return false;
     }
 }
예제 #3
0
 private ContactDetail GetContactObject(ContactDetail oo)
 {
     return  new ContactDetail
         {
             Id = oo.Id,
             EmployeeProfileId = oo.EmployeeProfileId,
             CompanyProfileId = oo.CompanyProfileId,
             FieldName = oo.FieldName,
             FieldUrl = oo.FieldUrl,
             FieldValueOne = oo.FieldValueOne,
             FieldValueTwo = oo.FieldValueTwo,
             FieldValueThree = oo.FieldValueThree
         };
 }