method renames

This commit is contained in:
2024-05-07 21:43:09 -04:00
parent aa3accb412
commit e5cb210df2
5 changed files with 8 additions and 8 deletions

View File

@ -16,7 +16,7 @@
}
}
public string GetText(string noteName)
public string GetNote(string noteName)
{
CheckFile(noteName);
@ -30,7 +30,7 @@
.ToList();
}
public void SaveText(string content, string noteName)
public void SaveNote(string content, string noteName)
{
File.WriteAllText(GetFilePath(noteName), content);
}
@ -51,7 +51,7 @@
{
Directory.CreateDirectory(folderPath);
SaveText("Hi! Feel free to start typing. Everything will be saved soon after you are done typing.", noteName);
SaveNote("Hi! Feel free to start typing. Everything will be saved soon after you are done typing.", noteName);
}
}

View File

@ -3,8 +3,8 @@
public interface INoteService
{
ICollection<string> GetNoteNames();
string GetText(string noteName);
void SaveText(string content, string noteName);
string GetNote(string noteName);
void SaveNote(string content, string noteName);
void DeleteNote(string noteName);
}
}