Esempio n. 1
0
        public FoodInfoDto ToDto(FoodInfo foodInfo)
        {
            FoodInfoDto foodInfoDto = new FoodInfoDto();

            foodInfoDto.FoodCalories  = foodInfo.FoodCalories;
            foodInfoDto.Carbohydrates = foodInfo.Carbohydrates;
            foodInfoDto.Fat           = foodInfo.Fat;
            foodInfoDto.Protein       = foodInfo.Protein;
            foodInfoDto.Salt          = foodInfo.Salt;
            return(foodInfoDto);
        }
Esempio n. 2
0
        public FoodInfo ToEntity(FoodInfoDto foodInfoDto)
        {
            FoodInfo foodInfo = new FoodInfo();

            return(foodInfo);
        }