public void SaveStringInversionToDatabase(string words, string result) { StringInversion invert = new StringInversion(); invert.String = words; invert.Result = result; _context.StringInversions.Add(invert); _context.SaveChanges(); }
public string InvertString(string word) { string invertedString = StringInversion.Invert(word); return(invertedString); }