예제 #1
0
        public ActionResult UpdateAction(ActionPoints model)
        {
            TDBContext db = new TDBContext();

            int MID = Convert.ToInt32(TempData["ID"]);

            ActionPoints ac = new ActionPoints
            {
                APID        = model.APID,
                Catagory    = model.Catagory,
                Priority    = model.Priority,
                ActionPoint = model.ActionPoint,
                DueDate     = model.DueDate,
                Responsible = model.Responsible,
                Remarks     = model.Remarks,
                MissionID   = MID
            };

            db.Entry(ac).State = EntityState.Modified;
            db.SaveChanges();

            string message = "Recored has been updated successfully.";
            bool   status  = true;

            return(Json(new { status = status, message = message }, JsonRequestBehavior.AllowGet));
        }
예제 #2
0
        public ActionResult UpdateMission(ISM model)
        {
            TDBContext db = new TDBContext();

            db.Entry(model).State = EntityState.Modified;
            db.SaveChanges();
            string message = "Recored has been updated successfully.";
            bool   status  = true;

            return(Json(new { status = status, message = message }, JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public ActionResult UpdateProgress(Progress model)
        {
            TDBContext db = new TDBContext();

            int MID = Convert.ToInt32(TempData["PID"]);

            Progress ac = new Progress
            {
                ProgID        = model.ProgID,
                Status        = model.Status,
                ReportingDate = model.ReportingDate,
                Percentage    = model.Percentage,
                APID          = MID
            };

            db.Entry(ac).State = EntityState.Modified;
            db.SaveChanges();

            string message = "Recored has been updated successfully.";
            bool   status  = true;

            return(Json(new { status = status, message = message }, JsonRequestBehavior.AllowGet));
        }