public virtual ApiFileTypeResponseModel MapBOToModel( BOFileType boFileType) { var model = new ApiFileTypeResponseModel(); model.SetProperties(boFileType.Id, boFileType.Name); return(model); }
public virtual BOFileType MapEFToBO( FileType ef) { var bo = new BOFileType(); bo.SetProperties( ef.Id, ef.Name); return(bo); }
public virtual FileType MapBOToEF( BOFileType bo) { FileType efFileType = new FileType(); efFileType.SetProperties( bo.Id, bo.Name); return(efFileType); }
public virtual BOFileType MapModelToBO( int id, ApiFileTypeRequestModel model ) { BOFileType boFileType = new BOFileType(); boFileType.SetProperties( id, model.Name); return(boFileType); }