General Service

From Bitnami MediaWiki
Jump to navigation Jump to search
public class FooService : BaseService, IFooService
{
  private readonly NOVUSContext dbContext;

  public FooService(
    IUnitOfWork uow,
    IMapper mapper,
    IHttpContextAccessor httpContextAccessor ,
    NOVUSContext dbContext,
    ILogger<FooService> logger
    ) : base(uow, mapper, httpContextAccessor, logger)
  {
    this.dbContext = dbContext;
  }
}

Register the registerBusinessLayer() method in the Novus.Web.Common/RegisterLayerServices.cs class with services.AddTransient<IFooService, FooService>().


Return to Programming Guide