コード例 #1
0
        public virtual async Task <IActionResult> Get(int id)
        {
            var result = await _malfunctionService.GetAsync(id);

            return(result != null
                ? Json(result)
                : (IActionResult)BadRequest());
        }
コード例 #2
0
 public virtual async Task <IActionResult> Get(int id)
 {
     return(Json(await _malfunctionService.GetAsync(id)));
 }