Exemplo n.º 1
0
        public HttpResponseMessage Put(UsersUpdates users)
        {
            var success = FollowersLogic.UpdateUsers(users.LoggedinUser, users.UserToFollow);

            if (success)
            {
                return(Request.CreateErrorResponse(HttpStatusCode.OK, "Follower Updated Successfully! "));
            }
            return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError,
                                               "An error occured while trying to update followers, Please try again later."));
        }
Exemplo n.º 2
0
        public List <UserDetails> Get()
        {
            var usersList = FollowersLogic.GetUsersList();

            return(usersList);
        }