예제 #1
0
 public ActionResult AcceptFriendRequest(int idLogged, int id)
 {
     try
     {
         friendsRepository.Accept(idLogged, id);
         repository.Delete(idLogged, id);
         return(Ok(new { success = true }));
     }
     catch (MySqlException ex)
     {
         throw ex;
     }
 }