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"); }
public void Create(TemplateEntity entity) { _Templates.InsertOne(entity); _logger.LogInformation($"Template {entity.TemplateID} inserted in database"); }