protected GenericControllerCrud( IServiceCrud <TKey, TEntity> service, IMapper mapper) { _Service = service; _Mapper = mapper; }
public DeveloperController(IServiceCrud<Guid, Entity.Developer> service, IMapper mapper) : base(service, mapper) { }
protected GenericControllerCrud(IServiceProvider serviceProvider) { _Service = serviceProvider.GetRequiredService <IServiceCrud <TKey, TEntity> >(); _Mapper = serviceProvider.GetRequiredService <IMapper>(); }