public ActionResult SystemStatus(HealthMsgsViewModel healthMsgObj) { CCHealthMsgs healthMsgCurObj = healthMsgObj.newObj; healthMsgCurObj.IssueDateTime = DateTime.Now; healthMsgCurObj.FixDateTime = DateTime.Parse(healthMsgObj.FixDateTimeString); healthMsgCurObj = CCHealthMsgsRepository.SaveHealthMsg(healthMsgCurObj); return RedirectToAction("SystemStatus", "CorporateContactsAdmin"); }
public ActionResult SystemStatus() { TempData["SelectedMenu"] = "SystemStatus"; HealthMsgsViewModel healthMsgObj = new HealthMsgsViewModel(); healthMsgObj.HealthMsgList = CCHealthMsgsRepository.CCHealthMsgs.OrderByDescending(HM=>HM.ID).ToList(); return View(healthMsgObj); }