public virtual ApiStudentResponseModel MapBOToModel( BOStudent boStudent) { var model = new ApiStudentResponseModel(); model.SetProperties(boStudent.Id, boStudent.Birthday, boStudent.Email, boStudent.EmailRemindersEnabled, boStudent.FamilyId, boStudent.FirstName, boStudent.IsAdult, boStudent.LastName, boStudent.Phone, boStudent.SmsRemindersEnabled, boStudent.UserId); return(model); }
public virtual BOStudent MapEFToBO( Student ef) { var bo = new BOStudent(); bo.SetProperties( ef.Id, ef.Birthday, ef.Email, ef.EmailRemindersEnabled, ef.FamilyId, ef.FirstName, ef.IsAdult, ef.LastName, ef.Phone, ef.SmsRemindersEnabled, ef.UserId); return(bo); }
public virtual Student MapBOToEF( BOStudent bo) { Student efStudent = new Student(); efStudent.SetProperties( bo.Birthday, bo.Email, bo.EmailRemindersEnabled, bo.FamilyId, bo.FirstName, bo.Id, bo.IsAdult, bo.LastName, bo.Phone, bo.SmsRemindersEnabled, bo.UserId); return(efStudent); }
public virtual BOStudent MapModelToBO( int id, ApiStudentRequestModel model ) { BOStudent boStudent = new BOStudent(); boStudent.SetProperties( id, model.Birthday, model.Email, model.EmailRemindersEnabled, model.FamilyId, model.FirstName, model.IsAdult, model.LastName, model.Phone, model.SmsRemindersEnabled, model.UserId); return(boStudent); }