/// <summary> /// Constructs a new BusinessController /// </summary> /// <param name="dbContext">The FrugalContext with which to update the databse.</param> /// <param name="mapper">The mapper used to convert between DTOs and database models.</param> public BusinessController(FrugalContext dbContext, IMapper mapper) { DbContext = dbContext; Mapper = mapper; }
/// <summary> /// Constructs a new TransactionsController /// </summary> /// <param name="dbContext">The FrugalContext with which to update the databse.</param> /// <param name="mapper">The mapper used to convert between DTOs and database models.</param> public TransactionsController(FrugalContext dbContext, IMapper mapper) { DbContext = dbContext; Mapper = mapper; }
/// <summary> /// Constructs the controller with the required dependencies. /// </summary> /// <param name="dbContext">The object used to interact with the database.</param> /// <param name="mapper">The object used to map DTOs to database entities.</param> public CategoriesController(FrugalContext dbContext, IMapper mapper) { DbContext = dbContext; Mapper = mapper; }