public virtual ApiErrorLogResponseModel MapBOToModel( BOErrorLog boErrorLog) { var model = new ApiErrorLogResponseModel(); model.SetProperties(boErrorLog.ErrorLogID, boErrorLog.ErrorLine, boErrorLog.ErrorMessage, boErrorLog.ErrorNumber, boErrorLog.ErrorProcedure, boErrorLog.ErrorSeverity, boErrorLog.ErrorState, boErrorLog.ErrorTime, boErrorLog.UserName); return(model); }
public virtual BOErrorLog MapEFToBO( ErrorLog ef) { var bo = new BOErrorLog(); bo.SetProperties( ef.ErrorLogID, ef.ErrorLine, ef.ErrorMessage, ef.ErrorNumber, ef.ErrorProcedure, ef.ErrorSeverity, ef.ErrorState, ef.ErrorTime, ef.UserName); return(bo); }
public virtual ErrorLog MapBOToEF( BOErrorLog bo) { ErrorLog efErrorLog = new ErrorLog(); efErrorLog.SetProperties( bo.ErrorLine, bo.ErrorLogID, bo.ErrorMessage, bo.ErrorNumber, bo.ErrorProcedure, bo.ErrorSeverity, bo.ErrorState, bo.ErrorTime, bo.UserName); return(efErrorLog); }
public virtual BOErrorLog MapModelToBO( int errorLogID, ApiErrorLogRequestModel model ) { BOErrorLog boErrorLog = new BOErrorLog(); boErrorLog.SetProperties( errorLogID, model.ErrorLine, model.ErrorMessage, model.ErrorNumber, model.ErrorProcedure, model.ErrorSeverity, model.ErrorState, model.ErrorTime, model.UserName); return(boErrorLog); }