Пример #1
0
 public ActionResult Create(WrapperViewNewProject wp)
 {
     //DatabaseContext db = new DatabaseContext();
     //List<Gate> gateList = db.Gates.ToList();
     //wp.gateList = gateList;
     //// wp.gate.gateId = 1;
     // System.Diagnostics.Debug.WriteLine("Hello");
     return(RedirectToAction("index", "home"));
 }
Пример #2
0
        public ActionResult Add()
        {
            MyLogger.GetInstance().Info("Creating Project");

            DbManagerFactory dbm = new DbManagerFactory(ProjectBaseClass.dbType());

            IProject Dbm = dbm.GetDbManager();

            WrapperViewNewProject nvp = Dbm.GetViewForNewProject();


            if (nvp == null)
            {
                msg = "Error - getting views for new project";

                MyLogger.GetInstance().Error(msg);

                return(RedirectToAction("ErrorView", "Project", new { message = msg }));
            }

            return(View(nvp));
        }