public ActionResult SaveNewAdhoc(NewExtraValueModel m) { try { m.AddAsNewAdhoc(); } catch (Exception ex) { ViewBag.Error = ex.Message; return View("NewAdhoc", m); } return new EmptyResult(); }
public ActionResult AddExtraValue(NewExtraValueModel m) { try { m.AddAsNewAdhoc(); } catch (Exception ex) { ViewBag.Error = ex.Message; return View("Tabs/ExtraValue/NewAdHoc", m); } var em = new ExtraValueModel(m.Id, m.Id2, "OrgMember", "Adhoc"); return View("Tabs/ExtraValue/Adhoc", em); }