Exemplo n.º 1
0
 public ActionResult AlreadyConvertTotal()
 {
     try
     {
         var user  = GetUserData();
         int count = UserLogic.AlreadyConvertTotal(user.UserId);
         Dictionary <string, object> dict = new Dictionary <string, object>();
         dict["alreadyConverCount"] = count;
         dict["mengBeansCount"]     = user.MengBeans;
         return(Json(new ResultModel(ApiStatusCode.OK, dict)));
     }
     catch (Exception ex)
     {
         LogHelper.Log(string.Format("AlreadyConvertTotal user:message:{0},StackTrace:{1}", ex.Message, ex.StackTrace), LogHelperTag.ERROR);
         return(Json(new ResultModel(ApiStatusCode.SERVICEERROR)));
     }
 }