Esempio n. 1
0
        private void cmdUpdate_Click(object sender, EventArgs e)
        {
            saveFormToObject(_tblProject);
            tblProjectDap newDap = new tblProjectDap();
            SaveGrids();
            newDap.Update(_tblProject);

            MessageBox.Show("Η ενημέρωση ολοκληρώθηκε", "Μήνυμα");
        }
Esempio n. 2
0
        public ActionResult Edit(tblProject tlProject)
        {
            try
            {
                if (ModelState.IsValid)
                {

                    tblProjectDap newDap = new tblProjectDap();
                    newDap.Update(tlProject);
                    return RedirectToAction("Index");
                }
                else
                {
                    return RedirectToAction("Index");
                }

            }
            catch
            {
                return View();
            }
        }