Beispiel #1
0
        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));
        }
Beispiel #2
0
        public async Task <IActionResult> Get(Guid id)
        {
            var result = await m_modeService.GetModeById(id);

            return(Ok(result));
        }