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.StudioId); return(bo); }
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.StudioId); return(boStudent); }