public ActionResult AddApplication(application application) { if (applicationDAO.AddNewApplication(application)) return RedirectToAction("Index"); else return View("AddApplication"); }
public bool AddNewApplication(application application) { try { _entities.application.Add(application); _entities.SaveChanges(); } catch { return false; } return true; }