public void UpdateCost(int newValue) { CostPerMinute newCost = GetActualCost(); newCost.Value = newValue; costRepository.Update(newCost); }
public CostPerMinute GetActualCost() { CostPerMinute a = costRepository.Get ("", ActualCountry.GetCountryTag()); return(a); }
private void LoadInicialCost() { CostPerMinute inicialCostUy = new CostPerMinute() { Value = INICIAL_DEFAULT_COSTPERMINUTE, CountryTag = "UY" }; CostPerMinute inicialCostAr = new CostPerMinute() { Value = INICIAL_DEFAULT_COSTPERMINUTE, CountryTag = "AR" }; CostPerMinute a = GetActualCost(); if (a == null) { costRepository.Add(inicialCostUy); costRepository.Add(inicialCostAr); } }