public HttpResponseMessage Post(Friend newFriend) { var repo = new MockFriendRepository(); repo.Add(newFriend); return(new HttpResponseMessage(HttpStatusCode.Created)); }
public List <Friend> Get() { var repo = new MockFriendRepository(); return(repo.GetAll()); }