public StudentsViewModel(IStudentService studentService, IDeleteCommandService deleteParameterService, IStudentRepository studentRepository) { this.studentService = studentService; this.deleteCommandService = deleteParameterService; this.studentRepository = studentRepository; Students = MappingUtil.MapToObservebleCollection <Student, StudentDTO>(studentRepository.GetAll()); }
public AppService(ICreateCommandService <TEntity, TEntityDto> createCommandService, IQueryService <TEntity, TEntityDto> queryService, IUpdateCommandService <TEntity, TEntityDto> updateCommandService, IDeleteCommandService <TEntity, TEntityDto> deleteCommandService) { _createCommandService = createCommandService ?? throw new ArgumentNullException(nameof(createCommandService)); _queryService = queryService ?? throw new ArgumentNullException(nameof(queryService)); _updateCommandService = updateCommandService; _deleteCommandService = deleteCommandService; }
public GraphicCardAppService(ICreateCommandService <GraphicCard, GraphicCardDto> createCommandService, IQueryService <GraphicCard, GraphicCardDto> queryService, IUpdateCommandService <GraphicCard, GraphicCardDto> updateCommandService, IDeleteCommandService <GraphicCard, GraphicCardDto> deleteCommandService) : base(createCommandService, queryService, updateCommandService, deleteCommandService) { }
public VendorAppService(ICreateCommandService <Vendor, VendorDto> createCommandService, IQueryService <Vendor, VendorDto> queryService, IUpdateCommandService <Vendor, VendorDto> updateCommandService, IDeleteCommandService <Vendor, VendorDto> deleteCommandService) : base(createCommandService, queryService, updateCommandService, deleteCommandService) { }