Пример #1
0
        public void DeleteTarefa(int id)
        {
            Tarefa Tarefa = repositorio.Busca(id);

            if (Tarefa == null)
            {
                throw new HttpResponseException(HttpStatusCode.NotFound);
            }
            repositorio.Apaga(Tarefa);
        }