Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ServiceReference1.Service2Client servisim = new ServiceReference1.Service2Client();
            int x = servisim.Topla(5, 2);

            if (IsPostBack)
                servisim.OgrenciEkle(Request.Form["ad"].ToString(), Convert.ToInt32(Request.Form["yas"]));
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            ServiceReference1.Service2Client client = new ServiceReference1.Service2Client();
            Console.WriteLine(client.AddEmployee());

            Console.ReadLine();
        }
        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";
            ServiceReference1.Service2Client obj = new ServiceReference1.Service2Client();
            var c = obj.Add(12, 15);

            return(Content(c.ToString()));
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            ServiceReference1.Service2Client client = new ServiceReference1.Service2Client();
            int add = client.Sum(12,34);

            int sub = client.Sub(123,34);
            //added comment
            System.Console.WriteLine(add);

            System.Console.WriteLine(sub);

            System.Console.ReadLine();
        }