Exemple #1
0
        public ReturnState AddGoodsCommentById(int id, string content)
        {
            var filters = new UtilityService().GetFilterLisst();

            content = Utilities.Filter(content, filters);
            return(MarketOperator.UpdateGoodsInfoCommentById(id, content) ? ReturnState.ReturnOK : ReturnState.ReturnError);
        }
Exemple #2
0
        public ReturnState AddLeaveMsg(LeaveMsgModel model)
        {
            var filters = new UtilityService().GetFilterLisst();

            model.Content = Utilities.Filter(model.Content, filters);
            return(MarketOperator.AddLeaveMsg(model) ? ReturnState.ReturnOK : ReturnState.ReturnError);
        }
Exemple #3
0
 public ReturnState RemoveGoodsInfo(int id)
 {
     return(MarketOperator.RemoveGoodsInfoById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
Exemple #4
0
 public ReturnState SetGoodsInfoSaleStatusAndBuyerById(int id, string status, string buyer)
 {
     return(MarketOperator.SetGoodsInfoSaleStatusAndBuyerById(id, MarketOperator.IndexOfSaleStatus(status), buyer) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
Exemple #5
0
 public bool HasMember(GoodsInfo model)
 {
     return(MarketOperator.HasMember(model));
 }
Exemple #6
0
 public List <GoodsInfo> GetAllGoodsInfo()
 {
     return(MarketOperator.GetAllGoodsInfo());
 }
Exemple #7
0
 public List <GoodsInfo> GetGoodsInfoListByNameAndDesp(string filter, string findStr)
 {
     return(MarketOperator.QueryGoodsInfoListByNameAndDesp(filter, findStr));
 }
Exemple #8
0
 public List <LeaveMsgModel> GetLeaveMsgListByGid(int gid)
 {
     return(MarketOperator.QueryLeaveMsgListByGid(gid));
 }
Exemple #9
0
 public List <GoodsInfo> GetGoodsInfoByStatus(string status)
 {
     return(MarketOperator.GetGoodsInfoListBySaleStatus(MarketOperator.IndexOfSaleStatus(status)));
 }
Exemple #10
0
 public List <GoodsInfo> GetGoodsInfoOnSale()
 {
     return(MarketOperator.GetGoodsInfoListBySaleStatus(3));
 }
Exemple #11
0
 public List <GoodsInfo> GetGoodsInfoListBySeller(string seller)
 {
     return(MarketOperator.GetGoodsInfoListBySeller(seller));
 }
Exemple #12
0
 public List <GoodsInfo> GetGoodsInfoListByBuyer(string buyer)
 {
     return(MarketOperator.GetGoodsInfoListByBuyer(buyer));
 }
Exemple #13
0
 public GoodsInfo GetGoodsInfoBySellerAndDate(string seller, DateTime date)
 {
     return(MarketOperator.QueryGoodsInfoBySellerAndDate(seller, date));
 }
Exemple #14
0
 public GoodsInfo GetGoodsInfoById(int id)
 {
     return(MarketOperator.QueryGoodsInfoById(id));
 }
Exemple #15
0
 public ReturnState DelLeaveMsgById(int id)
 {
     return(MarketOperator.RemoveLeaveMsgById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
Exemple #16
0
 public LeaveMsgModel GetLeaveMsgById(int id)
 {
     return(MarketOperator.QueryLeaveMsgById(id));
 }
Exemple #17
0
 public ReturnState UserAddGoods(GoodsInfo model)
 {
     return(MarketOperator.UserAddGoods(model) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
Exemple #18
0
 public ReturnState SetGoodsInfoStatusById(int id, string status)
 {
     return(MarketOperator.SetGoodsInfoStatusById(id, MarketOperator.IndexOfSaleStatus(status)) ? ReturnState.ReturnOK : ReturnState.ReturnError);
 }
Exemple #19
0
 public List <string> GetGoodsInfoTypeList()
 {
     return(MarketOperator.GetGoodsInfoTypeList());
 }