Ejemplo n.º 1
0
 public bool SubscribePost(long postId, bool isWeb)
 {
     try
     {
         PostManager mgr = new PostManager();
         TokenInfo tokenInfo = new HelperMethods().GetUserToken<TokenInfo>(isWeb, HttpContext.Current);
         return mgr.SubscribePost(tokenInfo.Idf, postId);
     }
     catch (Exception ex)
     {
         throw new WebFaultException<string>(ex.Message, System.Net.HttpStatusCode.InternalServerError);
     }
 }