public WeightGoalDataHelper() { weightGoalDataViewModel = new WeightGoalDataViewModel(); }
public ActionResult WeightGoalData() { WeightGoalDataViewModel weightGoalDataViewModel = new WeightGoalDataViewModel(); try { weightGoalDataViewModel = new WeightGoalDataHelper().GetViewModel(); ViewBag.Error = ""; } catch (Exception ex) { ViewBag.Error = ex.Message; } return View(weightGoalDataViewModel); }