public static BarCocktail ToEditEntity(this BarCocktailEditDTO barCocktail) { var barCocktailDTO = new BarCocktail { Bar = barCocktail.Bar, Cocktail = barCocktail.Cocktail }; return(barCocktailDTO); }
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); }