public DonatorService(DonatorContext dbContext) { _context = dbContext; bloodAmountList = new List <DataPoint>(); }
public DonatorViewModel(DonatorContext context) { donatorService = new DonatorService(context); Donators = donatorService.getValidDonatorsDB(); setDataPoints(); }