Ejemplo n.º 1
0
        public void UpdateBaseAttr(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 battr in newVersion.BaseAttr)
            {
                sanCheck = battr.Validate();
            }
            if (!sanCheck)
            {
                return;
            }

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