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); } }
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)); } }