示例#1
0
        public IHttpActionResult GetContent(string id)
        {
            Report report = _reportsRepository.GetWithContent(id);

            if (report == null)
            {
                return(NotFound());
            }

            RangeContentInfo rangeContentInfo = GetRangeContentInfo();

            return(FileResult(report.MapToViewModel(), rangeContentInfo));
        }