Persistence: Remove implementation specific usage.

This commit is contained in:
2015-09-28 23:43:28 +02:00
parent 6989c710ad
commit e1021685be
6 changed files with 9 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ namespace VAR.Focus.Web.Code.BusinessLogic
parser.KnownTypes.Add(type);
}
}
string filePath = GetLocalPath(file);
string filePath = GetLocalPath(string.Format("priv/{0}.json", file));
if (File.Exists(filePath) == false) { return listResult; }
string strJsonUsers = File.ReadAllText(filePath);
@@ -66,7 +66,8 @@ namespace VAR.Focus.Web.Code.BusinessLogic
{
JSONWriter writter = new JSONWriter(true);
string strJsonUsers = writter.Write(data);
File.WriteAllText(GetLocalPath(file), strJsonUsers);
string filePath = GetLocalPath(string.Format("priv/{0}.json", file));
File.WriteAllText(filePath, strJsonUsers);
return true;
}