public async Task <IActionResult> Delete(string id) { _logger.LogInformation("DELETE operation started."); await _stuffService.DeleteAsync(id); return(NoContent()); }
public async Task DeleteStuffItem() { await AddStuffItem(); //await _service.DeleteAsync(1); await Assert.ThrowsAsync <System.ArgumentNullException>(async() => await _service.DeleteAsync(1)); }
public async Task <IActionResult> Delete(int id) { await _stuffService.DeleteAsync(id); return(new NoContentResult()); }