コード例 #1
0
 /// <summary>
 /// 获取活动信息列表
 /// </summary>
 /// <param name="activityName"></param>
 /// <returns></returns>
 public List <ActivityIntroductionModel> GetAllActivityIntroductionList(string activityName, int pageIndex, int pageSize)
 {
     try
     {
         return(DalActivityIntroduction.GetAllActivityIntroductionList(activityName, pageIndex, pageSize));
     }
     catch (Exception innerEx)
     {
         throw innerEx;
     }
 }
コード例 #2
0
 /// <summary>
 /// 新增活动信息
 /// </summary>
 /// <param name="activity"></param>
 /// <param name="Type"></param>
 public int AddOrUpActivityIntroduction(ActivityIntroductionModel activity, string Type)
 {
     try
     {
         return(DalActivityIntroduction.AddOrUpActivityIntroduction(activity, Type));
     }
     catch (Exception innerEx)
     {
         throw innerEx;
     }
 }
コード例 #3
0
 /// <summary>
 /// 删除活动信息
 /// </summary>
 /// <param name="ID"></param>
 public int DeleteActivityIntroductionById(int ID)
 {
     try
     {
         return(DalActivityIntroduction.DeleteActivityIntroductionById(ID));
     }
     catch (Exception innerEx)
     {
         throw innerEx;
     }
 }
コード例 #4
0
        public ActivityIntroductionModel GetActivityIntroductionById(int ID)
        {
            Func <SqlConnection, ActivityIntroductionModel> action = (connection) => DalActivityIntroduction.GetActivityIntroductionById(connection, ID);

            return(dbManager.Execute(action));
        }