Beispiel #1
0
 /// <summary>
 /// 删除收藏记录
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 public JsonResult DeleteCollectResource(string ids)
 {
     try
     {
         var id = ids.GetArray();
         _resourceManager.DeleteCollectResource(id, CurrentUser.UserId);
         _resourceManager.AddResourceCount(ids.GetArray(), 3, 1);
         return(Json(new { result = 1, content = RetechWing.LanguageResources.Common.DeleteSuccess }, JsonRequestBehavior.AllowGet));
     }
     catch
     {
         return(Json(new { result = 0, content = RetechWing.LanguageResources.Common.DeleteFailed }, JsonRequestBehavior.AllowGet));
     }
 }