public ManagerViewModel() { CommandInit(); ColumnInit(); genericRepo = new CommunRepository <T>(repos.GetContext()); DataGridItemSourceLoad(); }
/// <summary> /// Crée une instance de <see cref="BackofficeController"/>. /// </summary> /// <param name="repository">Le repository d'accès aux données "Communes".</param> /// <param name="authorizationCacheService">Le service de purge du cache des habilitations.</param> public BackofficeController(ICommunRepository repository, IResourceAuthorizationCacheService authorizationCacheService) { _repository = repository; _authorizationCacheService = authorizationCacheService; }