예제 #1
0
        public ActionResult wf()
        {
            var    service = new workflow();
            string pid     = service.test();

            return(Content(pid));
        }
예제 #2
0
        //送出表單
        public ActionResult SentForm(Cwma model)
        {
            var    service = new workflow();
            string pid     = service.test(Session["Account"].ToString(), Session["Did"].ToString(), model);

            model.Department = Session["Did"].ToString();
            model.Applicant  = Session["Account"].ToString();
            model.Fid        = pid;
            var db = new DatabaseEntities();

            db.Cwma.Add(model);
            db.SaveChanges();
            return(Content(pid));
        }