public static SlideShow ToModel(this SlideShow entity) { if (entity == null) { return(null); } var model = new SlideShow { Id = entity.Id, Status = entity.Status, WebsiteLink = entity.WebsiteLink, ImgPath = entity.ImgPath, Video = entity.Video, Width = entity.Width, Height = entity.Height, Target = entity.Target, FromDate = entity.FromDate, ToDate = entity.ToDate, OrderDisplay = entity.OrderDisplay, Title = entity.GetLocalized(x => x.Title, entity.Id), Description = entity.GetLocalized(x => x.Description, entity.Id) }; return(model); }