public WinzelNewsFeedController(WinzelContext context) { _context = context; if (this._context.Winzels.Any()) { return; } CrackHoe.SpreadFakeNewws(context); }
public async Task <IActionResult> GetWinzel([FromRoute] long id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (id == 0) { CrackHoe.HaveSex(_context); } var winzel = await _context.Winzels.Include(w => w.WinzelComments).Include(w => w.WinzelHashTags).Include(w => w.WinzelGraps).SingleOrDefaultAsync(m => m.Id == id); if (winzel == null) { return(NotFound()); } return(Ok(winzel)); }
public WinzelCommentController(WinzelContext context) { _context = context; CrackHoe.CommentBitch(this._context); }