/// <summary> /// show live page /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Show(string id) { var mdl = _hostShowContext.Single(id); if (mdl != null) { return(View(mdl)); } return(View()); }
public IHttpActionResult Get(string id) { if (string.IsNullOrWhiteSpace(id)) { return(BadRequest()); } var mdl = _reps.Single(id); return(Ok(mdl)); }
public async Task <ActionResult> Index() { var mdl = await Task.Run(() => _hostSv.Single(User.Identity.Name)); return(View(mdl ?? new LiveHostShow())); }