public virtual ApiSpaceResponseModel MapBOToModel( BOSpace boSpace) { var model = new ApiSpaceResponseModel(); model.SetProperties(boSpace.Id, boSpace.Description, boSpace.Name, boSpace.StudioId); return(model); }
public virtual BOSpace MapEFToBO( Space ef) { var bo = new BOSpace(); bo.SetProperties( ef.Id, ef.Description, ef.Name, ef.StudioId); return(bo); }
public virtual Space MapBOToEF( BOSpace bo) { Space efSpace = new Space(); efSpace.SetProperties( bo.Description, bo.Id, bo.Name, bo.StudioId); return(efSpace); }
public virtual BOSpace MapModelToBO( int id, ApiSpaceRequestModel model ) { BOSpace boSpace = new BOSpace(); boSpace.SetProperties( id, model.Description, model.Name, model.StudioId); return(boSpace); }