public async Task <BrandModel> PrepareBrandModelAsync(Manufacturer manufacturer) { if (manufacturer == null) { return(null); } var model = new BrandModel { Id = manufacturer.Id, Name = manufacturer.GetLocalized(x => x.Name), Description = manufacturer.GetLocalized(x => x.Description, detectEmptyHtml: true), BottomDescription = manufacturer.GetLocalized(x => x.BottomDescription, detectEmptyHtml: true), MetaKeywords = manufacturer.GetLocalized(x => x.MetaKeywords), MetaDescription = manufacturer.GetLocalized(x => x.MetaDescription), MetaTitle = manufacturer.GetLocalized(x => x.MetaTitle), SeName = await manufacturer.GetActiveSlugAsync() }; model.MetaProperties = PrepareMetaPropertiesBrand(model); return(model); }