Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.ServiceModel;
- using System.Text;
- using System.ServiceModel.Web;
- using FutbalPortal_mvc4.Models;
- using System.Web.Http;
- namespace FutbalPortal_mvc4
- {
- // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IMatchesService" in both code and config file together.
- [ServiceContract]
- public interface IMatchesService
- {
- [WebGet(ResponseFormat = WebMessageFormat.Json)]
- [OperationContract]
- List<GamesInfo> DoWork();
- [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST", UriTemplate = "Login", BodyStyle = WebMessageBodyStyle.Wrapped)]
- [OperationContract]
- AccountLogin Login(String name, String password);
- [WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST", UriTemplate = "GetPlayer", BodyStyle = WebMessageBodyStyle.Wrapped)]
- [OperationContract]
- PlayerInfo GetPlayer(String name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement