public FileResult GetLogo(string id) { var site = RepositoryFactory.SiteRepository.GetNullableById(id); if (site != null && site.Logo != null) { return File(site.Logo, site.LogoContentType); } return File(new byte[0], string.Empty); }