Ejemplo n.º 1
0
        /// <summary>
        /// 添加图片信息
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public AjaxResult <Object> Add(JrttimagesReq req)
        {
            Jrttimagesinfo model = new Jrttimagesinfo();

            model.PlatforminfoId = req.PlatforminfoID;
            model.Url            = req.Url;
            model.Height         = req.Height;
            model.Width          = req.Width;
            model.WebUrl         = req.WebUrl;
            model.MimeType       = req.MimeType;

            db.Jrttimagesinfo.Add(model);
            db.SaveChanges();
            return(new AjaxResult <Object>("添加成功!", 0));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加图片库
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public int AddJrttImagesinfo(Jrttimagesinfo model)
 {
     db.Jrttimagesinfo.Add(model);
     return(db.SaveChanges());
 }