/// <summary> /// 添加或编辑 /// </summary> /// <param name="model"></param> /// <returns></returns> public static FeedbackInfo Create(FeedbackInfo model) { if (model.Id == 0) { int id = FeedbackManage.Insert(model); model.Id = id; } return(model); }
/// <summary> /// 列表 /// </summary> /// <param name="setting"></param> /// <returns></returns> public static IPageOfList <FeedbackInfo> List(SearchSetting setting) { return(FeedbackManage.List(setting)); }
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> /// <returns></returns> public static int Delete(int id) { return(FeedbackManage.Delete(id)); }
public static IPageOfList <FeedbackInfo> List(int pageIndex, int pageSize) { return(FeedbackManage.List(pageIndex, pageSize)); }
public static int Post(FeedbackInfo model) { return(FeedbackManage.Add(model)); }