コード例 #1
0
        public void UpdateStats(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 stat in newVersion.Stats)
            {
                sanCheck = stat.Validate();
            }
            if (!sanCheck)
            {
                return;
            }

            // Record the new values
            sFiller.FillStats(newVersion, path);
        }