Beispiel #1
0
        public ActionResult RecordView()
        {
            Db_1Entities obj  = new Db_1Entities();
            var          inte = Session["username"];

            return(View(obj.Previous_Task_Manager(Int32.Parse(inte.ToString()))));
        }
Beispiel #2
0
        // GET: Manager


        public ActionResult AboutView(Models.Class1 model)
        {
            Db_1Entities obj  = new Db_1Entities();
            var          inte = Session["username"];

            return(View(obj.Current_Task_Manager(Int32.Parse(inte.ToString()))));
        }
Beispiel #3
0
        public ActionResult RatingsView()
        {
            Db_1Entities obj  = new Db_1Entities();
            var          inte = Session["username"];

            return(View(obj.My_developers_ratings(Int32.Parse(inte.ToString()))));
        }
        public ActionResult PreviousRecordsView()
        {
            Db_1Entities obj  = new Db_1Entities();
            var          inte = Session["username"];

            return(View(obj.My_PreviousSubtasks(Int32.Parse(inte.ToString()))));
        }
Beispiel #5
0
        public ActionResult FeedbackFormView([Bind(Include = "DeveloperId,SubtaskId,FeedbackStr,Positivity")] Feedback feedback)
        {
            Db_1Entities db = new Db_1Entities();

            if (ModelState.IsValid)
            {
                paralleldots pd        = new paralleldots("qZA1qGaGDNNbSUGiNSEOpBjxZreiijYM7y77VLCrlvw");
                var          sentiment = pd.sentiment(feedback.FeedbackStr);
                var          objects   = JObject.Parse(sentiment);
                var          posprob   = objects["probabilities"]["positive"].ToString();
                feedback.Positivity = Double.Parse(posprob);
                db.Feedbacks.Add(feedback);
                db.SaveChanges();
                return(RedirectToAction("FeedbackFormView"));
            }

            return(View(feedback));
        }
        public ActionResult Index(Models.Class1 model)
        {
            Db_1Entities cbe = new Db_1Entities();
            var          s   = cbe.GetLoginInfo(model.UserName, model.Password);
            var          it  = s.FirstOrDefault();

            string[] result = it.Split(' ');
            string   last   = result[result.Length - 2];
            string   last2  = result[result.Length - 1];
            var      item   = result[0];

            Session["username"] = last;
            Session["name"]     = last2;
            if (item == "Developer")
            {
                return(View("Developer"));
            }
            else if (item == "Manager")
            {
                return(View("Manager"));
            }
            else if (item == "Admin")
            {
                return(View("Admin"));
            }
            else if (item == "User Does not Exists")

            {
                ViewBag.NotValidUser = item;
            }
            else
            {
                ViewBag.Failedcount = item;
            }
            ViewBag.heading = "UserName";

            return(View("Index"));
        }
        public ActionResult AboutView()
        {
            Db_1Entities cbe = new Db_1Entities();

            return(View(cbe.Admin_Home()));
        }
        // GET: Admin
        public ActionResult RatingsView()
        {
            Db_1Entities deep = new Db_1Entities();

            return(View(deep.DeveloperLoginInfoes.ToList()));
        }