public virtual async Task <IActionResult> GenericAttributeDtoListGet([FromQuery] int start, [FromQuery] int size) { _dbContext.RefreshFullDomain(); var l1 = await _attributeService.ListAttribute(size, start); return(new ObjectResult(_mapper.Map <List <Genericattribute>, List <GenericAttributeDto> >(l1))); }
public virtual async Task <IActionResult> CustomerByIdGet([FromQuery] string id) { User.CheckIfValidCustomerId(id, true); _dbContext.RefreshFullDomain(); var cust = await _customerService.GetCustomerByIdAsync(id); return(new ObjectResult(cust)); }
public virtual async Task <IActionResult> ArticleByIdGet([FromQuery] string articleId) { _dbContext.RefreshFullDomain(); var workflowById = await _genService.GetSingleByPredicateAsync((x => { return(x.Articleid.ToString() == articleId); })); return(new ObjectResult(workflowById)); }
public virtual async Task <IActionResult> ContentblockByIdGet([FromQuery] string ContentblockId) { _dbContext.RefreshFullDomain(); var workflowById = await _genService.GetSingleByPredicateAsync((x => { return(x.Contentblockid.ToString() == ContentblockId); }), d => { return(d.Include("Contentblockimagemap") .Include("Contentblockimagemap.Image")); }); return(new ObjectResult(workflowById)); }
public virtual void Execute(IJobExecutionContext context) { logger.Info("Start Elasticsearch Indexing Product...."); _dbContextService.RefreshFullDomain(); _indexingProductService.IndexProduct(); logger.Info("Finishing Elasticsearch Indexing Product...."); }
public virtual void Execute(IJobExecutionContext context) { logger.Info("Starting PeopleOnline DeQueue...."); _dbContextService.RefreshFullDomain(); _peopleOnlineService.ProcessQueuePeopleOnline("scheduler-job-people-online"); Thread.Sleep(Int32.MaxValue); logger.Info("Finishing PeopleOnline DeQueue...."); }
public virtual async void Execute(IJobExecutionContext context) { logger.Info("Start Product Workflow...."); _dbContextService.RefreshFullDomain(); var lstProduct = _productService.GetAllProducts(); lstProduct.ForEachIndexed((x, i) => _workflowService.ExecuteProductMainWorkflow(x.ProductID)); logger.Info("Finishing Product Workflow...."); }
public virtual void Execute(IJobExecutionContext context) { logger.Info("Starting Product Mailer DeQueue...."); _dbContextService.RefreshFullDomain(); _productMailQueueService.ProcessQueueProductEmail("scheduler-job-every30s"); Thread.Sleep(Int32.MaxValue); logger.Info("Finishing Product Mailer DeQueue...."); }