/// <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; } }
/// <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; } }
/// <summary> /// 删除活动信息 /// </summary> /// <param name="ID"></param> public int DeleteActivityIntroductionById(int ID) { try { return(DalActivityIntroduction.DeleteActivityIntroductionById(ID)); } catch (Exception innerEx) { throw innerEx; } }
public ActivityIntroductionModel GetActivityIntroductionById(int ID) { Func <SqlConnection, ActivityIntroductionModel> action = (connection) => DalActivityIntroduction.GetActivityIntroductionById(connection, ID); return(dbManager.Execute(action)); }