Beispiel #1
0
 public JsonResult addfavorties(string code, int targetid, string title, string link, string pic = null, string describe = null)
 {
     using (var manage = new bitcms.Data.CMSManage())
     {
         var num = manage.insertFavoritesInfo(new Entity.FavoritesInfo()
         {
             FavoritesCode = code,
             TargetId      = targetid,
             Title         = title,
             Link          = link,
             Pic           = pic,
             Describe      = describe,
             InDate        = Config.SiteConfig.getLocalTime(),
             UserId        = this.userOnlineInfo.UserId
         });
         return(this.getResult(manage.Error, manage.Message, num));
     }
 }