public async Task <IActionResult> DepositCreditPartner(int partnerId, decimal amount) { try { await this.UpdateSessionBalance(); var data = await _repo.DepositCreditPartner("tr", partnerId, amount); if (data.Status == ResponseStatus.Ok) { return(Ok(this.CreateSuccess(data.Data))); } throw new Exception(data.ErrorMessage); } catch (Exception e) { return(Ok(this.CreateError <string>(e.Message))); } }