public async Task <IViewComponentResult> InvokeAsync(Models.Patient currentPatient) { ViewBag.AerobicFunction = new AerobicFunction(currentPatient); return(View(await ActivityController.Read(currentPatient.Id, DateTimeNow.ToString(italianDateFormat), "1d"))); }