Example #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.DateOfBirth = dto.DateOfBirth;
        }
Example #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,
         DateOfBirth = dt.DateOfBirth,
     });
 }
Example #3
0
File: Dao.cs Project: BinAff/School
 public Dao(Data data)
     : base(data)
 {
 }
Example #4
0
 public Validator(Data data)
     : base(data)
 {
 }