public IHttpActionResult GetPeriodReport(int year) { var context = _reportsServices.GenerateReport(_projectServices.CreatePeriodReport(year, 1).ToDataTable(), 1 + " " + year); context.Response.Flush(); context.Response.End(); return(Ok()); }