Exemplo n.º 1
0
        public ActionResult <List <Item> > FiltrarPorTipoDoItem(string type)
        {
            Item itemVerificador = new Item();

            itemVerificador.Type = type;
            //itemVerificador.State = type;

            if (type == "CD" || type == "DVD" || type == "Livro" ||
                type == "disponivel" || type == "indisponivel")
            {
                var item = _itemService.BuscarTipo(type);
                return(item);
            }
            else
            {
                return(NotFound());
            }
        }