public ActionResult Get(int id = -1) { Mode entity = null; if (id == -1) { entity = new Mode(); entity.Id = -1; } else { entity = _modeService.GetModeById(id); } return(Json(entity)); }
public async Task <IActionResult> Get(Guid id) { var result = await m_modeService.GetModeById(id); return(Ok(result)); }