よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <ActionResult <string> > GetEnrolleeCurrentStatus(int enrolleeId) { var enrollee = await _enrolleeService.GetPermissionsRecordAsync(enrolleeId); if (enrollee == null) { return(NotFound(ApiResponse.Message($"Enrollee not found with id {enrolleeId}"))); } var status = await _enrolleeService.GetEnrolleeCurrentStatusAsync(enrolleeId); return(Ok(ApiResponse.Result(status))); }