示例#1
0
 public bool CheckFilename(string filename)
 {
     throw new NotImplementedException("Not tested");
     using (var db = new DbDataContext()) {
         MeFile meFile = db.MeFiles.SingleOrDefault(
             t => t.id == id && t.filename == filename);
         return(meFile != null);
     }
 }
示例#2
0
 public string GetFullFileName(string filename)
 {
     using (var db = new DbDataContext()) {
         MeFile meFile = db.MeFiles.SingleOrDefault(
             t => t.idMe == idMe && t.filename == filename);
         if (meFile == null)
         {
             return(string.Empty);
         }
         return(FileStorage.GetFullFileName(meFile.id));
     }
 }