Esempio n. 1
0
        public ActionResult Approve(string id)
        {
            var serviceClient = new ApprovalWorkflowService.ServiceClient();

            serviceClient.Approve(id);
            return(View());
        }
        static void Main(string[] args) {
            var client = new ApprovalWorkflowService.ServiceClient();
            client.BeginApprovalProcess(new[] {
                                                  "*****@*****.**", 
                                                  "*****@*****.**", 
                                                  "*****@*****.**"
                                              }, 
                                              "Holiday approval for Joe Bloggs from 2nd December to 12th January?", 
                                              "*****@*****.**");

            Console.ReadKey(false);
        }
Esempio n. 3
0
 public ActionResult Decline(string id)
 {
     ApprovalWorkflowService.ServiceClient serviceClient = new ApprovalWorkflowService.ServiceClient();
     serviceClient.Decline(id);
     return(View());
 }
 public ActionResult Approve(string id) {
     ApprovalWorkflowService.ServiceClient serviceClient = new ApprovalWorkflowService.ServiceClient();
     serviceClient.Approve(id);
     return View();
 }
 public ActionResult Decline(string id) {
     var serviceClient = new ApprovalWorkflowService.ServiceClient();
     serviceClient.Decline(id);
     return View();
 }