Esempio n. 1
0
 public void Create(User entity)
 {
     _users.InsertOne(entity);
     _logger.LogInformation($"User {entity.Username} inserted in database");
 }
 public void Create(ModelsEntity entity)
 {
     _models.InsertOne(entity);
     _logger.LogInformation($"Models {entity.Name} inserted in database");
 }
Esempio n. 3
0
 public void Create(TemplateEntity entity)
 {
     _Templates.InsertOne(entity);
     _logger.LogInformation($"Template {entity.TemplateID} inserted in database");
 }