public PromotionRowModel(Promotion promotion) { Id = promotion.Id; Name = promotion.Name; IsEnabled = promotion.IsEnabled; Priority = promotion.Priority; if (promotion.RequireCouponCode) { CouponCode = promotion.CouponCode; } else { CouponCode = "-"; } }