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.")); }
public List <UserDetails> Get() { var usersList = FollowersLogic.GetUsersList(); return(usersList); }