public ResponseItem EMailQueue(EmailModel model)
        {
            ResponseItem result = new ResponseItem();

            result.Result = true;

            try
            {
                iqManager.EmailSend(model);
                result.Message = "Success";

                AppModel modelMongo = new AppModel
                {
                    Name        = model.Subject,
                    Description = "EmailQueue",
                    Date        = DateTime.Now
                };
                _mongo.Create(modelMongo);
            }
            catch (Exception ex)
            {
                result.Result  = false;
                result.Message = ex.Message;
            }
            return(result);
        }
 public async Task PutIntoDatabase(ImageWithUrl imageWithUrl, string imagePath)
 {
     await mongoDBService.Create(imageWithUrl, imagePath);
 }