コード例 #1
0
ファイル: CategoryDtoMapper.cs プロジェクト: zenit1/beame-lfe
 public static BaseItemListDTO BaseItemEntity2BaseItemListDto(this SALE_BaseItemToken entity)
 {
     return(new BaseItemListDTO
     {
         id = entity.ItemId
         , name = entity.ItemName
         , type = Utils.ParseEnum <BillingEnums.ePurchaseItemTypes>(entity.ItemType)
     });
 }
コード例 #2
0
ファイル: CategoryDtoMapper.cs プロジェクト: zenit1/beame-lfe
        public static BaseItemListDTO BaseItemEntity2BaseItemListDtoWithTypePrefix(this SALE_BaseItemToken entity)
        {
            var type = Utils.ParseEnum <BillingEnums.ePurchaseItemTypes>(entity.ItemType);

            return(new BaseItemListDTO
            {
                id = entity.ItemId
                , name = entity.ItemName.StoreItemName2DisplayName(type)
                , type = type
            });
        }