//TODO: custom statistics public IActionResult DrugList() { _user = _userRepository.GetWithDrugs(User.Identity.GetUserId()); var viewModel = new DrugsViewModel { Drugs = _user.Drugs.ToList(), User = _user, DrugsReminder = DrugsService.GetDrugsForToday(_user.Drugs.ToList()) }; return(View(viewModel)); }
public DrugsController(DrugsService service) { this._drugs = service; }
public PrescriptionsController(PrescriptionService service, DrugsService dservice) { _prescriptions = service; _drugs = dservice; }