public IHttpActionResult BlockUser([FromBody] BlockFriendBindingModel model) { User user = GetCurrentUser(); Friend friend = FriendService.Obj.GetFriendsByUserIds(model.UserId, user.Id); friend.Blocked(); FriendService.Obj.Update(friend); return(Ok()); }