public ActionResult wf() { var service = new workflow(); string pid = service.test(); return(Content(pid)); }
//送出表單 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)); }