public decimal GetCustomerOutstandingAmt([FromBody] TblSalesReceipt salesreceipt) { try { decimal oustanding = this._repoWrapper.Salesreceipt.GetCustomerOutstandingAmt(salesreceipt); return(oustanding); } catch (Exception e) { return(0); } }
public bool Delete([FromBody] TblSalesReceipt salesreceipt) { try { this._repoWrapper.Salesreceipt.Delete(salesreceipt); this._repoWrapper.Salesreceipt.Save(); return(true); } catch (Exception e) { return(false); } }
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); } }