public virtual ApiLessonStatusResponseModel MapBOToModel( BOLessonStatus boLessonStatus) { var model = new ApiLessonStatusResponseModel(); model.SetProperties(boLessonStatus.Id, boLessonStatus.Name, boLessonStatus.StudioId); return(model); }
public virtual BOLessonStatus MapEFToBO( LessonStatus ef) { var bo = new BOLessonStatus(); bo.SetProperties( ef.Id, ef.Name, ef.StudioId); return(bo); }
public virtual LessonStatus MapBOToEF( BOLessonStatus bo) { LessonStatus efLessonStatus = new LessonStatus(); efLessonStatus.SetProperties( bo.Id, bo.Name, bo.StudioId); return(efLessonStatus); }
public virtual BOLessonStatus MapModelToBO( int id, ApiLessonStatusRequestModel model ) { BOLessonStatus boLessonStatus = new BOLessonStatus(); boLessonStatus.SetProperties( id, model.Name, model.StudioId); return(boLessonStatus); }