public async Task <IActionResult> Delete() { try { await _subjectsRepository.DeleteAll().ConfigureAwait(false); return(Ok()); } catch (Exception exception) { return(HttpNotFound(exception)); } }