Пример #1
0
 public ActionResult HoursReport(int caseID, int providerID, DateTime startPeriod, DateTime endPeriod)
 {
     if (!Global.Default.User().HasPermission(Permissions.ProviderHoursView))
     {
         return(new HttpUnauthorizedResult());
     }
     using (var stream = ProviderService.GetHoursReports(caseID, providerID, startPeriod, endPeriod))
     {
         return(File(stream.GetBuffer(), "application/pdf"));
     }
 }