자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
자주 사용되는 메소드들
public async Task <IActionResult> GetCinema([FromRoute] int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var cinemas = await Task.Run(() => _cinemaService.GetCinemasId(id)); if (cinemas == null) { return(NotFound()); } return(Ok(cinemas)); }