public static ShoppingCartItem MappingtoshoppingcartDto(this ShoppingCartItemdto shoppingcartdto) { return(new ShoppingCartItem { ShoppingCartItemId = shoppingcartdto.ShoppingCartItemId, Amount = shoppingcartdto.Amount, ShoppingCartId = shoppingcartdto.ShoppingCartId }); }
public static void MappingshoppingcartDto(this ShoppingCartItemdto shoppingcartdto, ShoppingCartItem shoppingcart) { shoppingcartdto.ShoppingCartItemId = shoppingcart.ShoppingCartItemId; shoppingcartdto.Amount = shoppingcart.Amount; shoppingcartdto.ShoppingCartId = shoppingcart.ShoppingCartId; }