public ApplicantService( IManagementUnitOfWork managementUnitOfWork, ILogger <ApplicantService> logger) { _managementUnitOfWork = managementUnitOfWork; _logger = logger; }
public TariffAppService( IManagementUnitOfWork unitOfWork, IFileHelper fileHelper ) : base(unitOfWork) { _fileHelper = fileHelper; }
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); }
public TariffCategoryAppService( IManagementUnitOfWork unitOfWork, IFileHelper fileHelper, TenantType tenantType = TenantType.WebService ) : base(unitOfWork, tenantType) { _fileHelper = fileHelper; }
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; }
public StudentRepository(IManagementUnitOfWork unitOfWork, ITracer tracer) : base(unitOfWork, tracer) { }
public ManagementSystemService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) { UnitOfWork = unitOfWork; }
public InsightAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType) { }
public FileHelper(IManagementUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; }
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; }
public ApplicationSettingsAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType) { }
public SystemService(IManagementUnitOfWork unitOfWork) { UnitOfWork = unitOfWork; }
public ApplicationUserManagement(IManagementUnitOfWork unitOfWork) { this.unitOfWork = unitOfWork; }
public SearchInWebsiteAppService(IManagementUnitOfWork unitOfWork, TenantType tenantType = TenantType.WebService) : base(unitOfWork, tenantType) { }
public CourseRepository(IManagementUnitOfWork unitOfWork, ITracer tracer) : base(unitOfWork, tracer) { }
public WishListAppService( IRepository <WishListItem> repository, IManagementUnitOfWork managementUnitOfWork) : base(repository) { _unitOfWork = managementUnitOfWork; }