Exemplo n.º 1
0
 /// <summary>
 /// 设置启用状态
 /// </summary>
 /// <param name="fid">The fid.</param>
 /// <returns></returns>
 public static bool SetEnable(int fid)
 {
     using (var dal = FactoryDispatcher.FocusFactory())
     {
         return(dal.SetEnable(fid));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 删除焦点广告图
 /// </summary>
 /// <param name="fid">The fid.</param>
 /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 public static bool DeleteFocusPic(int fid)
 {
     using (var dal = FactoryDispatcher.FocusFactory())
     {
         return(dal.DeleteFocusPic(fid));
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 获取播图
 /// </summary>
 /// <param name="type">0 资讯轮播图 1首页轮播图</param>
 /// <returns>List&lt;FocusPicModel&gt;.</returns>
 public static List <FocusPicModel> GetAppList(int type)
 {
     using (var dal = FactoryDispatcher.FocusFactory())
     {
         return(dal.GetAppList(type));
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 获取焦点广告图列表
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns>ResultPageModel.</returns>
 public static ResultPageModel GetList(SearchModel model)
 {
     using (var dal = FactoryDispatcher.FocusFactory())
     {
         return(dal.GetList(model));
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// 编辑焦点广告图
 /// </summary>
 /// <param name="model">The model.</param>
 /// <returns></returns>
 public static bool EditFocusPic(FocusPicModel model)
 {
     using (var dal = FactoryDispatcher.FocusFactory())
     {
         if (model.ID > 0)
         {
             return(dal.UpdateFocusPic(model));
         }
         else
         {
             return(dal.AddFocusPic(model) > 0);
         }
     }
 }