public ActionResult CaseHoursLogs(int caseID, bool showAll) { var cutoff = CurrentHoursHistoryCutoff; var model = new CaseHoursDetailVM { ShowAllHours = showAll, IsSupervisor = homeRepository.IsProviderSupervisor(caseID, Provider.ID.Value), Items = homeRepository.GetCaseHoursDetails(caseID, Provider.ID.Value, cutoff) }; return(PartialView("CaseHoursLog", model)); }
public ActionResult CaseHoursLogCallback() { //var showAll = Request.Params["showAll"] == "true"; var caseID = int.Parse(Request.Params["caseID"]); var provider = Global.Default.GetUserProvider(); var cutoff = CurrentHoursHistoryCutoff; var model = new CaseHoursDetailVM { Items = homeRepository.GetCaseHoursDetails(caseID, provider.ID.Value, cutoff) }; return(PartialView("CaseHoursLogGrid", model.Items)); }