Пример #1
0
 public DummyRemoveOptionController(IAutoCrudRepository <DummyEntity, int> repository, ILogger logger) : base(
         repository, logger)
 {
     RemoveAction(CrudActionType.GET_PAGE, new UnsupportedActionException("GET PAGE NOT SUPPORTED"));
     RemoveAction(CrudActionType.FIND_ENTITY, new UnsupportedActionException("FIND ENTITY NOT SUPPORTED"));
     RemoveAction(CrudActionType.CREATE, new UnsupportedActionException("CREATE NOT SUPPORTED"));
     RemoveAction(CrudActionType.UPDATE, new UnsupportedActionException("UPDATE NOT SUPPORTED"));
     RemoveAction(CrudActionType.DELETE, new UnsupportedActionException("DELETE NOT SUPPORTED"));
 }
 protected AutoCrudController(IAutoCrudRepository <Entity, PrimaryKey> repository, ILogger logger) : base(
         repository, logger)
 {
 }
 protected AutoCrudControllerBase(IAutoCrudRepository <Entity, PrimaryKey> repository, ILogger logger)
 {
     _repository     = repository;
     _logger         = logger;
     _removedActions = new Dictionary <CrudActionType, Exception>();
 }