public StepsDataHelper(string uniqueGuid, int patientId) { this.uniqueGuid = uniqueGuid; this.patientId = patientId; stepsDataViewModel = new StepsDataViewModel(); }
/// <summary> /// Steps Action /// </summary> /// <param name="uniqueGuid">Unique GUID</param> /// <param name="patientId">Patient ID</param> /// <returns></returns> public ActionResult Steps(string uniqueGuid, int patientId) { StepsDataViewModel stepsDataViewModel = new StepsDataViewModel(); try { stepsDataViewModel = new StepsDataHelper(uniqueGuid, patientId).GetViewModel(); ViewBag.Error = ""; } catch (Exception ex) { ViewBag.Error = ex.Message; } return View(stepsDataViewModel); }