method renames
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user