public HomeController(IUserBL userBL, IWorkBL workBL, IGenreBL genreBL, IRatingBL ratingBL, ICommentBL commentBL) { this._userBL = userBL; this._workBL = workBL; this._genreBL = genreBL; this._ratingBL = ratingBL; this._commentBL = commentBL; }
public CompositionController(IUserBL userBL, IWorkBL workBL, IGenreBL genreBL, IRatingBL ratingBL, ICommentBL commentBL) { this.userBL = userBL; this.workBL = workBL; this.genreBL = genreBL; this.ratingBL = ratingBL; this.commentBL = commentBL; }
public async Task Invoke(HttpContext httpContext, IRatingBL Iratingbl) { _IratingBL = Iratingbl; Rating rating = new Rating(); rating.Host = httpContext.Request.Host.ToString(); rating.Method = httpContext.Request.Method; rating.Path = httpContext.Request.Path; rating.UserAgent = httpContext.Request.Headers["User-Agent"]; rating.Referer = httpContext.Request.Headers["Referer"]; rating.RecordDate = DateTime.Now; _IratingBL.addToCntx(rating); await _next(httpContext); }