Exemple #1
0
        public async Task <FoodMessageRating> InsertRatingMessageSingleAsync(FoodMessageRating newFoodMessageRating)
        {
            _context.FoodMessageRating.Add(newFoodMessageRating);

            await _context.SaveChangesAsync();

            return(newFoodMessageRating);
        }
 public async Task <FoodMessageRating> InsertRatingMessageSingleAsync([FromBody] FoodMessageRating value)
 {
     return(await _ratingMessageService.InsertRatingMessageSingleAsync(value));
 }