public async Task <IActionResult> DeleteContent(DeleteContentDTO input) { try { await _contentService.DeleteContent(input); return(Ok()); } catch (Exception) { throw; } }
public async Task DeleteContent(DeleteContentDTO input) { await _repository.Delete(input.Id); }