예제 #1
0
        public HttpResponseMessage Post(Friend newFriend)
        {
            var repo = new MockFriendRepository();

            repo.Add(newFriend);

            return(new HttpResponseMessage(HttpStatusCode.Created));
        }
예제 #2
0
        public List <Friend> Get()
        {
            var repo = new MockFriendRepository();

            return(repo.GetAll());
        }