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); }
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); }
public ReturnState RemoveGoodsInfo(int id) { return(MarketOperator.RemoveGoodsInfoById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public ReturnState SetGoodsInfoSaleStatusAndBuyerById(int id, string status, string buyer) { return(MarketOperator.SetGoodsInfoSaleStatusAndBuyerById(id, MarketOperator.IndexOfSaleStatus(status), buyer) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public bool HasMember(GoodsInfo model) { return(MarketOperator.HasMember(model)); }
public List <GoodsInfo> GetAllGoodsInfo() { return(MarketOperator.GetAllGoodsInfo()); }
public List <GoodsInfo> GetGoodsInfoListByNameAndDesp(string filter, string findStr) { return(MarketOperator.QueryGoodsInfoListByNameAndDesp(filter, findStr)); }
public List <LeaveMsgModel> GetLeaveMsgListByGid(int gid) { return(MarketOperator.QueryLeaveMsgListByGid(gid)); }
public List <GoodsInfo> GetGoodsInfoByStatus(string status) { return(MarketOperator.GetGoodsInfoListBySaleStatus(MarketOperator.IndexOfSaleStatus(status))); }
public List <GoodsInfo> GetGoodsInfoOnSale() { return(MarketOperator.GetGoodsInfoListBySaleStatus(3)); }
public List <GoodsInfo> GetGoodsInfoListBySeller(string seller) { return(MarketOperator.GetGoodsInfoListBySeller(seller)); }
public List <GoodsInfo> GetGoodsInfoListByBuyer(string buyer) { return(MarketOperator.GetGoodsInfoListByBuyer(buyer)); }
public GoodsInfo GetGoodsInfoBySellerAndDate(string seller, DateTime date) { return(MarketOperator.QueryGoodsInfoBySellerAndDate(seller, date)); }
public GoodsInfo GetGoodsInfoById(int id) { return(MarketOperator.QueryGoodsInfoById(id)); }
public ReturnState DelLeaveMsgById(int id) { return(MarketOperator.RemoveLeaveMsgById(id) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public LeaveMsgModel GetLeaveMsgById(int id) { return(MarketOperator.QueryLeaveMsgById(id)); }
public ReturnState UserAddGoods(GoodsInfo model) { return(MarketOperator.UserAddGoods(model) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public ReturnState SetGoodsInfoStatusById(int id, string status) { return(MarketOperator.SetGoodsInfoStatusById(id, MarketOperator.IndexOfSaleStatus(status)) ? ReturnState.ReturnOK : ReturnState.ReturnError); }
public List <string> GetGoodsInfoTypeList() { return(MarketOperator.GetGoodsInfoTypeList()); }