public ActionResult CSCInitiative() { var cscini = new tbCSCInitiative(); cscini.CreatedDate = DateTime.Now; return(View(cscini)); }
public ActionResult CSCInitiative(tbCSCInitiative cscini) { AdminService _service = new AdminService(); if( _service.SetCSCInitiative(cscini)) return View(cscini); return View("Error"); }
public ActionResult CSCInitiative(tbCSCInitiative cscini) { AdminService _service = new AdminService(); if (_service.SetCSCInitiative(cscini)) { return(View(cscini)); } return(View("Error")); }
public bool SetCSCInitiative(tbCSCInitiative cscini) { try { _dataContext.tbCSCInitiatives.InsertOnSubmit(cscini); _dataContext.SubmitChanges(); } catch (Exception e) { return(false); } return(true); }
public bool SetCSCInitiative(tbCSCInitiative cscini) { try { _dataContext.tbCSCInitiatives.InsertOnSubmit(cscini); _dataContext.SubmitChanges(); } catch (Exception e) { return false; } return true; }
public bool SetCSCInitiative(tbCSCInitiative cscini) { return _repository.SetCSCInitiative(cscini); }
public bool SetCSCInitiative(tbCSCInitiative cscini) { return(_repository.SetCSCInitiative(cscini)); }
public ActionResult CSCInitiative() { var cscini = new tbCSCInitiative(); cscini.CreatedDate = DateTime.Now; return View(cscini); }