예제 #1
0
        public async Task <ActionResult <MealsProductsDTO> > Get()
        {
            var model = await dietRepository.Get();

            if (model == null)
            {
                return(NotFound());
            }

            return(model);
        }
예제 #2
0
 public async Task <DietDto> Get(int id)
 {
     return(await _dietRepository.Get(id));
 }