Advertisement
Guest User

Untitled

a guest
Mar 28th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.06 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.ServiceModel;
  6. using System.Text;
  7. using System.ServiceModel.Web;
  8. using FutbalPortal_mvc4.Models;
  9. using System.Web.Http;
  10.  
  11. namespace FutbalPortal_mvc4
  12. {
  13.     // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMatchesService" in both code and config file together.
  14.     [ServiceContract]
  15.     public interface IMatchesService
  16.     {
  17.         [WebGet(ResponseFormat = WebMessageFormat.Json)]
  18.         [OperationContract]
  19.         List<GamesInfo> DoWork();
  20.  
  21.         [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST", UriTemplate = "Login", BodyStyle = WebMessageBodyStyle.Wrapped)]
  22.         [OperationContract]
  23.         AccountLogin Login(String name, String password);
  24.  
  25.         [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST", UriTemplate = "GetPlayer", BodyStyle = WebMessageBodyStyle.Wrapped)]
  26.         [OperationContract]
  27.         PlayerInfo GetPlayer(String name);
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement