public string Save(Deposit deposit) { int rowAffect = depositGateway.Save(deposit); int affect = accountGateway.UpdateBalByAcNo(deposit.Ammount, deposit.AccountId); if (rowAffect != 0 && affect != 0) { return("Successful"); } else { return("Failed"); } }