Exemple #1
0
        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");
        }
Exemple #3
0
        public ActionResult CSCInitiative(tbCSCInitiative cscini)
        {
            AdminService _service = new AdminService();

            if (_service.SetCSCInitiative(cscini))
            {
                return(View(cscini));
            }
            return(View("Error"));
        }
Exemple #4
0
 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;
        }
Exemple #6
0
 public bool SetCSCInitiative(tbCSCInitiative cscini)
 {
     return _repository.SetCSCInitiative(cscini);
 }
Exemple #7
0
 public bool SetCSCInitiative(tbCSCInitiative cscini)
 {
     return(_repository.SetCSCInitiative(cscini));
 }
 public ActionResult CSCInitiative()
 {
     var cscini = new tbCSCInitiative();
     cscini.CreatedDate = DateTime.Now;
     return View(cscini);
 }