Esempio n. 1
0
        public OperationResultVo <int> Count()
        {
            OperationResultVo <int> result;

            try
            {
                int count = _repository.GetAll().Count();

                result = new OperationResultVo <int>(count);
            }
            catch (Exception ex)
            {
                result = new OperationResultVo <int>(ex.Message);
            }

            return(result);
        }
Esempio n. 2
0
 public IQueryable <Arquivo> GetAll() => _ArquivoRepository.GetAll();