Exemplo n.º 1
0
        public ActionResult JobOpeningsByRole(string role)
        {
            Assignment1_Client.SayHello.SayHelloClient client = new Assignment1_Client.SayHello.SayHelloClient("BasicHttpBinding_ISayHello");
            JobOpenings openings = new JobOpenings();

            openings.role    = role;
            openings.opening = client.OpeningJobsByRole(role);
            return(View(openings));
        }
Exemplo n.º 2
0
        public ActionResult JobOpenings()
        {
            Assignment1_Client.SayHello.SayHelloClient client = new Assignment1_Client.SayHello.SayHelloClient("BasicHttpBinding_ISayHello");
            List <JobOpenings> openings = new List <JobOpenings>();
            var response = client.OpeningJobs();

            foreach (var item in response)
            {
                JobOpenings opening = new JobOpenings();
                opening.opening = item.Value;
                opening.role    = item.Key;
                openings.Add(opening);
            }
            return(View(openings));
        }
Exemplo n.º 3
0
 public ActionResult InvokeTCP()
 {
     Assignment1_Client.SayHello.SayHelloClient client = new Assignment1_Client.SayHello.SayHelloClient("NetTcpBinding_ISayHello");
     TempData["Tag"] = client.DoWork("Folks - Fetched through tcp binding");
     return(RedirectToAction("Index"));
 }