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

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

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

            return(new NoContentResult());
        }