public SurveyResponseController( IMGSurveyDbContext mgSurveyDbContext, ISchemaValidatorService schemaValidatorService, IMapper mapper, ILogger <SurveyResponseController> logger ) : base(mgSurveyDbContext, schemaValidatorService, mapper, logger) { _logger = logger; _mapper = mapper; _mgSurveyDbContext = mgSurveyDbContext; _schemaValidatorService = schemaValidatorService; }
public BaseController( IMGSurveyDbContext mgSurveyDbContext, ISchemaValidatorService schemaValidatorService, IMapper mapper, ILogger <BaseController <TEntity, TModel> > logger) { _logger = logger; _mapper = mapper; _mgSurveyDbContext = mgSurveyDbContext; _schemaValidatorService = schemaValidatorService; UserName = User?.Identity?.Name ?? "Admin"; }