Beispiel #1
0
        public async Task <JsonResult> GetFoodDetails(string id)
        {
            var response = _foodAgent.GetFoodById(id);

            //HttpContext.Session.Set("userId", id);
            return(await Task.FromResult(Json(response)));
        }