public FileContentResult GetServiceEventImage(int id) { ServiceEvent service = _unitOfWork.GetServiceEventById(id); if (service == null) { return(null); } return(File(service.Image, service.ContentType)); }