常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> Delete(int id) { try { if (id > 0) { await _repository.BlockAsync(id); return(Ok()); } throw new ArgumentNullException("Comment was not identificated"); } catch (Exception ex) { return(BadRequest(ex.Message)); } }