public ActionResult GetVenueImage(int siteId)
{
var file = RepositoryFactory.FileRepository.Queryable.FirstOrDefault(a => a.Seminar.Id == siteId && a.Venue);
if (file != null)
{
return File(file.Contents, "image/jpg");
}
else
{
return File(new byte[0], "image/jpg");
}
}