예제 #1
0
        public ActionResult CreateIssue(int solutionID)
        {
            var solution     = pocoDb.Fetch <tblSolution>("WHERE solutionID = @0", solutionID).FirstOrDefault();
            var tblComponent = pocoDb.Fetch <tblSolutionComponent>("WHERE solutionID = @0", solutionID);
            var tblstatus    = pocoDb.Fetch <tblIssueStatus>("").ToList();
            var VM           = new ClientPortal.ViewModels.IssueCreateViewModel
            {
                solution   = solution,
                Components = tblComponent,
                Statuses   = tblstatus
            };

            return(View(VM));
        }
예제 #2
0
        public ActionResult Create(string h, string w, string b, int componentid, string url, string solutionid)
        {
            Session["solutionID"] = solutionid;
            int solutionID   = Convert.ToInt32(solutionid);
            var solution     = pocoDb.Fetch <tblSolution>("WHERE solutionID = @0", solutionID).FirstOrDefault();
            var tblComponent = pocoDb.Fetch <tblSolutionComponent>("WHERE solutionID = @0", solutionID);
            var tblstatus    = pocoDb.Fetch <tblIssueStatus>("").ToList();

            Session["height"]  = h;
            Session["width"]   = w;
            Session["browser"] = b;
            ViewBag.Components = new SelectList(tblComponent, "componentID", "componentTitle", componentid);
            var VM = new ClientPortal.ViewModels.IssueCreateViewModel
            {
                Statuses = tblstatus,
                solution = solution
            };

            return(View(VM));
        }