コード例 #1
0
 public ProfessorsController(MathSiteDbContext context,
                             MathServices services,
                             IMapper mapper,
                             CrudServiceMethods <Professor, ProfessorDto> crudServiceMethods,
                             PageableServiceMethods <Professor, ProfessorDto> pageableServiceMethods,
                             CountableServiceMethods <Professor> countableServiceMethods) : base(context, services, mapper)
 {
     _crudServiceMethods      = crudServiceMethods;
     _pageableServiceMethods  = pageableServiceMethods;
     _countableServiceMethods = countableServiceMethods;
 }
コード例 #2
0
 public CategoriesController(
     MathSiteDbContext context,
     MathServices services,
     IMapper mapper,
     CrudServiceMethods <Category, CategoryDto> crudServiceMethods,
     PageableServiceMethods <Category, CategoryDto> pageableServiceMethods,
     CountableServiceMethods <Category> countableServiceMethods
     ) : base(context, services, mapper)
 {
     _crudServiceMethods      = crudServiceMethods;
     _pageableServiceMethods  = pageableServiceMethods;
     _countableServiceMethods = countableServiceMethods;
 }
コード例 #3
0
 public GroupsController(
     MathSiteDbContext context,
     MathServices services,
     IMapper mapper,
     CrudServiceMethods <Group, GroupDto> crudServiceMethods,
     PageableServiceMethods <Group, GroupDto> pageableServiceMethods,
     CountableServiceMethods <Group> countableServiceMethods
     ) : base(context, services, mapper)
 {
     _crudServiceMethods      = crudServiceMethods;
     _pageableServiceMethods  = pageableServiceMethods;
     _countableServiceMethods = countableServiceMethods;
 }
コード例 #4
0
 public UsersController(
     MathSiteDbContext context,
     MathServices services,
     IMapper mapper,
     IPasswordsManager passwordsManager,
     CrudServiceMethods <User, UserDto> crudServiceMethods,
     PageableServiceMethods <User, UserDto> pageableServiceMethods,
     CountableServiceMethods <User> countableServiceMethods
     ) : base(context, services, mapper)
 {
     _passwordsManager        = passwordsManager;
     _crudServiceMethods      = crudServiceMethods;
     _pageableServiceMethods  = pageableServiceMethods;
     _countableServiceMethods = countableServiceMethods;
 }