よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <ActionResult <IEnumerable <BusinessEvent> > > GetEnrolleeBusinessEvents(int enrolleeId, [FromQuery] IEnumerable <int> businessEventTypeCodes) { var enrollee = await _enrolleeService.GetEnrolleeAsync(enrolleeId); if (enrollee == null) { return(NotFound(ApiResponse.Message($"Enrollee not found with id {enrolleeId}"))); } var events = await _enrolleeService.GetEnrolleeBusinessEventsAsync(enrolleeId, businessEventTypeCodes); return(Ok(ApiResponse.Result(events))); }