public IActionResult Delete(long id) { var survey = _surveysService.Find(id); if (survey == null) { return(NotFound()); } _surveysService.Delete(id); return(new NoContentResult()); }
public async Task <IActionResult> Delete(int id) { await _surveysService.Delete(id); return(NoContent()); }
public async Task <OperationResult> Delete(int id) { return(await _surveysService.Delete(id)); }