コード例 #1
0
 public ActionResult AddApplication(application application)
 {
     if (applicationDAO.AddNewApplication(application))
         return RedirectToAction("Index");
     else
     return View("AddApplication");
 }
コード例 #2
0
 public bool AddNewApplication(application application)
 {
     try
     {
         _entities.application.Add(application);
         _entities.SaveChanges();
     }
     catch
     {
         return false;
     }
     return true;
 }