Exemplo n.º 1
0
        public ActionResult Create([Bind(Include = "Id,Name, Created, ProjectManager,IsDeleted, PMName")] Project project)
        {
            if (ModelState.IsValid)
            {
                project.IsDeleted = false;
                project.Created   = DateTime.Now;
                db.Projects.Add(project);
                db.SaveChanges();
                projHelper.AddPM(project.ProjectManager, project.Id);
                return(RedirectToAction("Index"));
            }


            return(View(project));
        }