常用方法
常用方法
常用方法
常用方法
public async Task <IActionResult> DeleteMovie(int id) { try { await _moviesService.DeleteAndSaveAsync(id); } catch (Exception) { return(NotFound()); } return(NoContent()); }
public async Task <IActionResult> DeleteMovie(int id) { try { await _moviesService.DeleteAndSaveAsync(id); } catch (Exception) { return(NotFound()); } return(NoContent()); }