public IEnumerable <Articulo> GetAllArticulos(string key, int type)
        {
            string      _key;
            Encriptador enc = new Encriptador();

            _key = enc.Desencriptar(key);

            return(repository.GetAll(_key, type));
        }
Пример #2
0
        public async Task <IActionResult> FindAll()
        {
            try
            {
                var item = await Repository.GetAll().ToListAsync();

                return(Ok(item));
            }
            catch (Exception e)
            {
                throw e;
            }
        }
Пример #3
0
 public IEnumerable <Articulo> Get()
 {
     return(repository.GetAll());
 }