Пример #1
0
        public override void AssignData()
        {
            Dto dto = (base.FormDto as FormDto).Dto as Dto;

            Comp.Data data = base.ComponentData as Comp.Data;
            data.Id                 = dto.Id;
            data.FirstName          = dto.FirstName;
            data.MiddleName         = dto.MiddleName;
            data.LastName           = dto.LastName;
            data.Occupation         = new Occupation.Server(null).Convert(dto.Occupation) as OcuComp.Data;
            data.ContactInformation = new ContactInformation.Server(null).Convert(dto.ContactInformation) as ContComp.Data;
            data.Mobile             = new Mobile.Server(null).Convert(dto.Mobile) as MobileComp.Data;
        }
Пример #2
0
 public override BinAff.Facade.Library.Dto Convert(BinAff.Core.Data data)
 {
     Comp.Data dt = data as Comp.Data;
     return(new Dto
     {
         Id = dt.Id,
         FirstName = dt.FirstName,
         MiddleName = dt.MiddleName,
         LastName = dt.LastName,
         Occupation = new Occupation.Server(null).Convert(dt.Occupation) as Occupation.Dto,
         ContactInformation = new ContactInformation.Server(null).Convert(dt.ContactInformation) as ContactInformation.Dto,
         Mobile = new Mobile.Server(null).Convert(dt.Mobile) as Mobile.Dto,
     });
 }
Пример #3
0
 public Dao(Data data)
     : base(data)
 {
 }
Пример #4
0
 public Validator(Data data)
     : base(data)
 {
 }