예제 #1
0
        public static BarCocktail ToEditEntity(this BarCocktailEditDTO barCocktail)
        {
            var barCocktailDTO = new BarCocktail
            {
                Bar      = barCocktail.Bar,
                Cocktail = barCocktail.Cocktail
            };

            return(barCocktailDTO);
        }
예제 #2
0
        public static BarCocktailEditDTO ToEditDTO(this BarCocktail barCocktail)
        {
            var barCocktailDTO = new BarCocktailEditDTO
            {
                BarId      = barCocktail.BarId,
                Bar        = barCocktail.Bar,
                CocktailId = barCocktail.CocktailId,
                Cocktail   = barCocktail.Cocktail
            };

            return(barCocktailDTO);
        }