public IHttpActionResult GetContent(string id) { Report report = _reportsRepository.GetWithContent(id); if (report == null) { return(NotFound()); } RangeContentInfo rangeContentInfo = GetRangeContentInfo(); return(FileResult(report.MapToViewModel(), rangeContentInfo)); }