public FileTransferQueue AddFileTransferQueue(string fileName) { var queueFile = new FileTransferQueue { CreatedDateTime = DateTimeOffset.Now, FileName = fileName }; FileTransferQueues.Add(queueFile); SaveChanges(); return(queueFile); }
public void DeleteFileTransferQueue(FileTransferQueue file) { FileTransferQueues.Remove(file); SaveChanges(); }