public async Task <IActionResult> GetFoodDataById(long id) { try { return(Ok(new { data = await _foodDataBL.GetFoodDataByID(id) })); } catch (Exception e) { return(BadRequest(new { message = MessageConstant.UNHANDLE_ERROR, error = e.StackTrace })); } }
public async Task <Models.FoodData.FoodData> GetFoodDetail(long foodId) { return(await _foodDataBL.GetFoodDataByID(foodId)); }
public async Task <FoodData> GetFoodDataById(long id) { return(await _foodDataBL.GetFoodDataByID(id)); }