private void UpdateUserInvestmentData() { List <UserInvestment> userInvestments = SqlConnector.GetUserInvestemnt_All(); foreach (UserInvestment ui in userInvestments) { SqlConnector.UpdateDifference(ui); } }
private bool FindInvestment(int id) { List <UserInvestment> currentInvestments = SqlConnector.GetUserInvestemnt_All(); foreach (UserInvestment ui in currentInvestments) { if (ui.IdInvestment == id) { return(true); } } return(false); }