public WeightDataHelper() { weightDataViewModel = new WeightDataViewModel(); }
public ActionResult WeightData() { WeightDataViewModel weightDataViewModel = new WeightDataViewModel(); try { weightDataViewModel = new WeightDataHelper().GetViewModel(); ViewBag.Error = ""; } catch (Exception ex) { ViewBag.Error = ex.Message; } return View(weightDataViewModel); }