public static ContactDE Translate(this ContactDE src, ContactDE dest)
        {
            dest.Mobile1 = src.Mobile1;
            dest.Mobile2 = src.Mobile2;
            dest.Phone1 = src.Phone1;
            dest.Phone2 = src.Phone2;

            return dest;
        }
Beispiel #2
0
        //[TestMethod]
        public void AddEntity()
        {
            _bdmSvc = new BDMService();
            EntityDE ety = new EntityDE();
            ety.EntityName = "Imran Farooq";
            ety.EntityTypeCode = EntityTypes.MGR.ToString();
            ety.SiteCode = AppConstants.SITE_CODE;

            AddressDE add = new AddressDE(AddressTypes.Personal.ToString());
            add.AddressLine1 = "St. Ahmad Din Sipahi";
            add.AddressLine2 = "Moh. Fatu Pura, Gujrat";

            ContactDE contact = new ContactDE();
            contact.Mobile1 = "0333-348343499";

            ety.Addresses.Add(add);
            ety.Contacts.Add(contact);

            decimal retVal = _bdmSvc.AddEntity(ety);
        }
Beispiel #3
0
 public ManagerViewModel()
 {
     Address = new AddressDE();
     Contact = new ContactDE();
     Manager = new EntityDE(EntityTypes.MGR);
     Managers = new List<EntityView>();
     Cities = new List<CityDE>();
     Areas = new List<AreaDE>();
     Regions = new List<RegionDE>();
 }