public UsersController(IRepository <User> repository, ICollectionModelMapper <User, UserModel> mapper) : base(repository, mapper) { }
public ProjectsController(IRepository <Project> repository, ICollectionModelMapper <Project, ProjectModel> mapper) { }
public UsersController(IRepository <User> repository, ICollectionModelMapper <User, UserModel> mapper, ICollectionModelMapper <User, UserRegistrationModel> profileMapper) { this.repository = repository; this.mapper = mapper; this.profileMapper = profileMapper; }
public TermsController(IRepository <Term> repository, IRepository <Range> rangeRepository, ICollectionModelMapper <Term, TermModel> mapper) : base(repository, mapper) { this.rangeRepository = rangeRepository; }
/// <summary> /// Initializes a new instance of the <see cref="ApiBaseController{TEntity, TModel}" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="mapper">The mapper.</param> protected ApiBaseController(IRepository <TEntity> repository, ICollectionModelMapper <TEntity, TModel> mapper) { this.repository = repository; this.mapper = mapper; }
public RangesController(IRepository <Range> repository, ICollectionModelMapper <Range, RangeModel> mapper) : base(repository, mapper) { }
public ResourcesController(IRepository <Resource> repository, IRepository <Range> rangeRepository, IRepository <Term> termRepository, ICollectionModelMapper <Resource, ResourceModel> mapper) : base(repository, mapper) { this.rangeRepository = rangeRepository; this.termRepository = termRepository; }
public BuildsController(IRepository <Build> repository, ICollectionModelMapper <Build, BuildModel> mapper) : base(repository, mapper) { }
public ApiControllerBase(IRepository <TEntity> repository, ICollectionModelMapper <TEntity, TModel> mapper) : this(repository, mapper, EngineContext.Current.Resolve <IConfigurationProvider <ApplicationSettings> >()) { }
/// <summary> /// Initializes a new instance of the <see cref="ApiControllerBase{TEntity, TModel}" /> class. /// </summary> /// <param name="repository">The repository.</param> /// <param name="mapper">The mapper.</param> protected ApiControllerBase(IRepository <TEntity> repository, ICollectionModelMapper <TEntity, TModel> mapper, IConfigurationProvider <ApplicationSettings> provider) { this.repository = repository; this.mapper = mapper; this.provider = provider; }