Exemple #1
0
        public ResultBM GetLogs(LogDTO filter)
        {
            ResultBM result;
            try {
                LogDAL logDal = new LogDAL();
                List<LogDTO> logDtos = logDal.GetLogs(filter);
                List<LogBM> logBms = ConvertIntoBusinessModel(logDtos);                
                result = new ResultBM(ResultBM.Type.OK, "Recuperación de registros exitosa.", logBms);
            }
            catch (Exception exception)
            {
                result = new ResultBM(ResultBM.Type.EXCEPTION, SessionHelper.GetTranslation("RETRIEVING_ERROR") + " " + exception.Message, exception);

            }

            return result;
        }