public ActionResult ListFriends(int id)
 {
     try
     {
         List <User> friends = repository.ListFriends(id);
         return(Ok(new { friends = friends }));
     }
     catch (MySqlException ex)
     {
         throw ex;
     }
 }