public async Task <IActionResult> Delete(string id)
        {
            _logger.LogInformation("DELETE operation started.");
            await _stuffService.DeleteAsync(id);

            return(NoContent());
        }
Beispiel #2
0
        public async Task DeleteStuffItem()
        {
            await AddStuffItem();

            //await _service.DeleteAsync(1);
            await Assert.ThrowsAsync <System.ArgumentNullException>(async() =>
                                                                    await _service.DeleteAsync(1));
        }
Beispiel #3
0
        public async Task <IActionResult> Delete(int id)
        {
            await _stuffService.DeleteAsync(id);

            return(new NoContentResult());
        }