Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <summary>
 /// 列表
 /// </summary>
 /// <param name="setting"></param>
 /// <returns></returns>
 public static IPageOfList <FeedbackInfo> List(SearchSetting setting)
 {
     return(FeedbackManage.List(setting));
 }
Beispiel #3
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public static int Delete(int id)
 {
     return(FeedbackManage.Delete(id));
 }
Beispiel #4
0
 public static IPageOfList <FeedbackInfo> List(int pageIndex, int pageSize)
 {
     return(FeedbackManage.List(pageIndex, pageSize));
 }
Beispiel #5
0
 public static int Post(FeedbackInfo model)
 {
     return(FeedbackManage.Add(model));
 }