Ejemplo n.º 1
0
 public decimal GetCustomerOutstandingAmt([FromBody] TblSalesReceipt salesreceipt)
 {
     try
     {
         decimal oustanding = this._repoWrapper.Salesreceipt.GetCustomerOutstandingAmt(salesreceipt);
         return(oustanding);
     }
     catch (Exception e)
     {
         return(0);
     }
 }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 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);
            }
        }