public JsonResult CreateNewProject(NewProjectInformation pInfo)
 {
     using (var sRepository = new SpecRequestRepository())
     {
         return(Json(new { projectId = sRepository.Add(pInfo) },
                     JsonRequestBehavior.AllowGet));
     }
 }
        public ActionResult Add(ProjectInformation pInfo)
        {
            using (var sRepository = new SpecRequestRepository())
            {
                if (ModelState.IsValid)
                {
                    sRepository.Add(pInfo);

                    return(RedirectToAction("Manage"));
                }

                ViewBag.BlankInformation = sRepository.GetProjectSeriesInformation();
            }

            return(View(pInfo));
        }