public virtual async Task <IActionResult> Get(int id) { var result = await _malfunctionService.GetAsync(id); return(result != null ? Json(result) : (IActionResult)BadRequest()); }
public virtual async Task <IActionResult> Get(int id) { return(Json(await _malfunctionService.GetAsync(id))); }