Exemple #1
0
 public ApplicantService(
     IManagementUnitOfWork managementUnitOfWork,
     ILogger <ApplicantService> logger)
 {
     _managementUnitOfWork = managementUnitOfWork;
     _logger = logger;
 }
Exemple #2
0
 public TariffAppService(
     IManagementUnitOfWork unitOfWork,
     IFileHelper fileHelper
     ) : base(unitOfWork)
 {
     _fileHelper = fileHelper;
 }
Exemple #3
0
        public async Task <bool> TransferToDatabaseAsync(EronFile input, IManagementUnitOfWork unitOfWork)
        {
            var fileEntity = await _unitOfWork.FileRepository.GetByIdAsync(input.Id);

            if (fileEntity?.FileUrl == null)
            {
                return(false);
            }
            //throw new FileNotFoundException();

            var shortFileAddress = input.FileUrl;
            var fileAddress      = HttpContext.Current.Server.MapPath(shortFileAddress);

            if (fileAddress == null)
            {
                return(false);
            }
            //throw new FileNotFoundException();

            var fileBytes = File.ReadAllBytes(fileAddress);

            fileEntity.FileData = fileBytes;
            fileEntity.FileUrl  = null;
            File.Delete(fileAddress);
            unitOfWork.FileRepository.Update(fileEntity);
            return(true);
        }
Exemple #4
0
 public TariffCategoryAppService(
     IManagementUnitOfWork unitOfWork,
     IFileHelper fileHelper,
     TenantType tenantType = TenantType.WebService
     ) : base(unitOfWork, tenantType)
 {
     _fileHelper = fileHelper;
 }
Exemple #5
0
 public ProductAppService(
     IManagementUnitOfWork unitOfWork,
     IFileHelper fileHelper, IProductPropertyRepository productPropertyRepository, TenantType tenantType = TenantType.WebService
     ) : base(unitOfWork, tenantType)
 {
     _fileHelper = fileHelper;
     _productPropertyRepository = productPropertyRepository;
 }
 public BannerSliderAppService(
     IManagementUnitOfWork unitOfWork,
     IFileHelper fileHelper,
     TenantType tenantType = TenantType.WebService
     ) : base(unitOfWork, tenantType)
 {
     _fileHelper = fileHelper;
 }
Exemple #7
0
 public StudentRepository(IManagementUnitOfWork unitOfWork, ITracer tracer)
     : base(unitOfWork, tracer)
 {
 }
Exemple #8
0
 public ManagementSystemService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService)
 {
     UnitOfWork = unitOfWork;
 }
Exemple #9
0
 public InsightAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType)
 {
 }
Exemple #10
0
 public FileHelper(IManagementUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
 }
Exemple #11
0
 public SearchInControlPanelAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType)
 {
 }
 public ProductCategoryAppService(IManagementUnitOfWork unitOfWork,
                                  TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType)
 {
 }
 public BaseManagementController(IManagementUnitOfWork unitOfWork,
                                 ITariffAppService tariffService)
 {
     this.TariffService = tariffService;
     this.UnitOfWork    = unitOfWork;
 }
Exemple #14
0
 public ApplicationSettingsAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType)
 {
 }
 public SystemService(IManagementUnitOfWork unitOfWork)
 {
     UnitOfWork = unitOfWork;
 }
Exemple #16
0
 public ApplicationUserManagement(IManagementUnitOfWork unitOfWork)
 {
     this.unitOfWork = unitOfWork;
 }
 public SearchInWebsiteAppService(IManagementUnitOfWork unitOfWork,
                                  TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType)
 {
 }
Exemple #18
0
 public CourseRepository(IManagementUnitOfWork unitOfWork, ITracer tracer)
     : base(unitOfWork, tracer)
 {
 }
 public WishListAppService(
     IRepository <WishListItem> repository,
     IManagementUnitOfWork managementUnitOfWork) : base(repository)
 {
     _unitOfWork = managementUnitOfWork;
 }