예제 #1
0
        public void SaveStringInversionToDatabase(string words, string result)
        {
            StringInversion invert = new StringInversion();

            invert.String = words;
            invert.Result = result;
            _context.StringInversions.Add(invert);
            _context.SaveChanges();
        }
예제 #2
0
        public string InvertString(string word)
        {
            string invertedString = StringInversion.Invert(word);

            return(invertedString);
        }