Example #1
0
        public object RemoveAndReturnProfit(Passport passport, DeleteBillGoods item)
        {
            ProfitDal profitDal = new ProfitDal();

            if (dal.DeleteBillGoods(item.BillGoodsId) > 0)
            {
                return(CustomerDataConverter.RowToProfit(profitDal.DeleteBillGoods(item.BillId, item.BillCustomerId)));
            }
            else
            {
                return(ErrorMsg.DeleteFailMsg());
            }
        }
Example #2
0
 public string Remove(Passport passport, string key)
 {
     return(dal.DeleteAddress(key) > 0 ? "" : ErrorMsg.DeleteFailMsg());
 }
Example #3
0
 public string Update(Passport passport, BillGoods item)
 {
     return(dal.UpdateBillGoods(passport.EnterpriseId, item) > 0 ? "" : ErrorMsg.DeleteFailMsg());
 }
Example #4
0
 public string Remove(Passport passport, string id)
 {
     return(dal.DeleteBillGoods(id) > 0 ? "" : ErrorMsg.DeleteFailMsg());
 }