예제 #1
0
        private void DeletePrivateFile(Message message)
        {
            var filePath = _dbController.GetPrivateFilePath(message.StringMessage);

            if (filePath == null)
            {
                SendResult(false, "Файл не найден");
                return;
            }
            File.Delete(filePath);
            _dbController.DeletePrivateFile(message.StringMessage);
            SendResult(true, String.Empty);
        }