Пример #1
0
 public decimal GetCustomerOutstandingAmt([FromBody] TblSalesReceipt salesreceipt)
 {
     try
     {
         decimal oustanding = this._repoWrapper.Salesreceipt.GetCustomerOutstandingAmt(salesreceipt);
         return(oustanding);
     }
     catch (Exception e)
     {
         return(0);
     }
 }
Пример #2
0
        public bool Delete([FromBody] TblSalesReceipt salesreceipt)
        {
            try
            {
                this._repoWrapper.Salesreceipt.Delete(salesreceipt);
                this._repoWrapper.Salesreceipt.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }
Пример #3
0
        public bool Update([FromBody] TblSalesReceipt salesreceipt)
        {
            try
            {
                this._repoWrapper.Salesreceipt.SaveCustomerTransaction(salesreceipt);
                this._repoWrapper.Salesreceipt.Update(salesreceipt);
                this._repoWrapper.Salesreceipt.Save();
                return(true);
            }

            catch (Exception e)
            {
                return(false);
            }
        }