public async Task <ActionResult <CrawlSetpType> > PostCrawlSetpType([FromForm] CrawlSetpType crawlSetpType) { _context.CrawlSetpTypes.Add(crawlSetpType); await _context.SaveChangesAsync(); return(CreatedAtAction("GetCrawlSetpType", new { id = crawlSetpType.Id }, crawlSetpType)); }
public async Task <IActionResult> PutCrawlSetpType([FromForm] int id, [FromForm] CrawlSetpType crawlSetpType) { if (id != crawlSetpType.Id) { return(BadRequest()); } _context.Entry(crawlSetpType).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!CrawlSetpTypeExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public CrawlStep(int Id, CrawlSetpType crawlSetpType, Url url, string Selector) { CrawlItems = new List <CrawlItem>(); this.Id = Id; this.CrawlStepType = crawlSetpType; this.Url = url; this.Selector = Selector; }
public CrawlStepGetRssLinks(int Id, CrawlSetpType crawlSetpType, Url url, string Selector) : base(Id, crawlSetpType, url, Selector) { }
public CrawlStepParseLinkList(int Id, CrawlSetpType crawlSetpType, Url url, string Selector) : base(Id, crawlSetpType, url, Selector) { }
public CrawlStepAssignCategories(int Id, CrawlSetpType crawlSetpType, Url url, string Selector) : base(Id, crawlSetpType, url, Selector) { }