public static ShowcaseItemsModel Mapper(ShowcaseItemsEntity sce) { ShowcaseItemsModel scm = new ShowcaseItemsModel { Id = sce.Id, Sku = SkuMapper.Mapper(sce.Sku), ShowCase = ShowcaseMapper.Mapper(sce.ShowCase) }; return(scm); }
public static List <ShowcaseItemsModel> Mapper(List <ShowcaseItemsEntity> sceList) { List <ShowcaseItemsModel> scmList = new List <ShowcaseItemsModel>(); foreach (var sce in sceList) { ShowcaseItemsModel scm = new ShowcaseItemsModel { Id = sce.Id, Sku = SkuMapper.Mapper(sce.Sku), ShowCase = ShowcaseMapper.Mapper(sce.ShowCase) }; scmList.Add(scm); } return(scmList); }