public async Task <IActionResult> DeleteAll()
        {
            await _todoService.DeleteAll();

            return(new NoContentResult());
        }
        public async Task <ResponseMessageResult> DeleteAll()
        {
            await _todosService.DeleteAll();

            return(ResponseMessage(Request.CreateResponse(HttpStatusCode.NoContent)));
        }
Exemplo n.º 3
0
        public async Task <IActionResult> DeleteAll()
        {
            await _todosService.DeleteAll();

            return(StatusCodeAndDtoWrapper.BuildSuccess("Todos Deleted Successfully"));
        }
        public async Task <HttpResponseMessage> DeleteAll()
        {
            await _todosService.DeleteAll();

            return(StatusCodeAndDtoWrapper.BuildSuccess("Todos Deleted Successfully"));
        }