常用方法
常用方法
常用方法
常用方法
private IActionResult Delete(int ID) { var isDeleted = repository.DeleteEntity(ID); if (isDeleted) { return(NoContent()); } else { return(NotFound()); } }
private IActionResult Delete(int ID) { var isDeleted = repository.DeleteEntity(ID); if (isDeleted) { return(NoContent()); } else { return(NotFound()); } }