public async Task <ActionResult <ScheduledRecipeDto> > GetRecipesScheduledAsync([FromRoute] int scheduleId) { var scheduledRecipeEntity = await _recipesScheduled.GetAsync(scheduleId); if (scheduledRecipeEntity == null) { return(NotFound()); } var scheduledRecipeDto = _mapper.Map <ScheduledRecipeDto>(scheduledRecipeEntity); return(Ok(scheduledRecipeDto)); }
public async Task <ScheduledRecipe> GetAsync(int scheduledId) { return(await _dal.GetAsync(scheduledId)); }