Esempio n. 1
0
        public async Task <bool> DeleteAsyncById(int id)
        {
            //Fazer validações se o user esta no padrão certo;
            var service = new ServiceFaixas();

            bool result = await service.DeleteAsyncById(id);

            return(result);
        }
Esempio n. 2
0
        public async Task <bool> EditAsync(Faixas dados)
        {
            //Fazer validações se o user esta no padrão certo;
            var service = new ServiceFaixas();

            bool result = await service.EditAsync(dados);

            return(result);
        }
Esempio n. 3
0
        public async Task <string> GetAllAsync()
        {
            var service    = new ServiceFaixas();
            var jsonstring = await service.GetAllAsync();

            if (jsonstring == "[]")
            {
                return("Null");
            }
            else
            {
                return(jsonstring);
            }
        }
Esempio n. 4
0
        public async Task <string> GetByIdAsync(int id)
        {
            //Fazer validações se o user esta no padrão certo;
            var service = new ServiceFaixas();

            var jsonstring = await service.GetByIdAsync(id);

            if (jsonstring == "[]")
            {
                return("Null");
            }
            else
            {
                return(jsonstring);
            }
        }