public void UpdateSpendPoints(Character monPerso, Character newVersion) { logger.Log("Inside character repository.UpdateSkills."); SheetFiller sFiller = new SheetFiller(); // This might be reworked string mypath = ConfigurationManager.AppSettings["path"]; string path = System.Web.HttpContext.Current.Server.MapPath(mypath); bool sanCheck = true; foreach (var sPoint in newVersion.SpendPoints) { sanCheck = sPoint.Validate(); } if (!sanCheck) { return; } // Record the new values sFiller.FillSpendablePoints(newVersion, path); }