mirror of
https://github.com/farcasclaudiu/myfriendsaround.git
synced 2026-06-29 17:01:49 +03:00
Added tag tag1 for changeset 4c285537b335
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
using System.Runtime.Serialization;
|
||||
using System.ServiceModel;
|
||||
using System.ServiceModel.Activation;
|
||||
using System.ServiceModel.Web;
|
||||
using System.Text;
|
||||
using MyFriendsAround.Common.Entities;
|
||||
using MyFriendsAround.Data;
|
||||
using MyFriendsAround.Data.BLL;
|
||||
|
||||
namespace MyFriendsAround.Web
|
||||
{
|
||||
[ServiceContract(Namespace = "http://myfriendsaround.com/")]
|
||||
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
|
||||
[ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
|
||||
public class myfriends
|
||||
{
|
||||
|
||||
[OperationContract]
|
||||
[WebGet(ResponseFormat = WebMessageFormat.Json)]
|
||||
public List<Friend> GetFriends()
|
||||
{
|
||||
return FriendsRepository.GetFriends();
|
||||
}
|
||||
|
||||
|
||||
[OperationContract]
|
||||
[WebInvoke(ResponseFormat = WebMessageFormat.Json, Method = "POST")]
|
||||
public bool PublishLocation(Friend friend)
|
||||
{
|
||||
return FriendsRepository.PublishLocation(friend);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user