public async Task <JsonResult> GetFoodDetails(string id) { var response = _foodAgent.GetFoodById(id); //HttpContext.Session.Set("userId", id); return(await Task.FromResult(Json(response))); }
public async Task <JsonResult> GetFoodDetails(string id) { var response = _foodAgent.GetFoodById(id); //HttpContext.Session.Set("userId", id); return(await Task.FromResult(Json(response))); }