public IActionResult Withdraw(int id, int amount, string accountType) { var AmountWithdrawed = _customerAccountRepo.WithDraw(id, amount, accountType).FirstOrDefault(); return(Ok(AmountWithdrawed)); }
public IActionResult Withdraw(int id, int amount, string accountType) { var AmountWithdrawed = _customerAccountRepo.WithDraw(id, amount, accountType).FirstOrDefault(); return(Ok(AmountWithdrawed)); }