/// <summary> /// 显示盈亏结构图 /// </summary> /// <returns></returns> public async Task <FileResult> ShowSFPic(string id) { try { if (!string.IsNullOrEmpty(id)) { Guid gid = new Guid(id); Entities.Brochure find = await BrochureRepository.FindAsync(b => b.BrochureID == gid); byte[] image = find.SFPic; return(new FileContentResult(image, "image/jpeg")); } return(null); } catch (Exception) { return(null); } }