public async Task <JsonResult> GetDrinkList() { var user = HttpContext.Session.Get <User>(Constants.SessionKeyState); int rolId = user.Role.Id; string userId = user.Id; string establishmentId = user.Establishment.id; var list = new Response <IEnumerable <Drink> >() { Success = true }; list = _drinkAgent.GetDrinks(userId, establishmentId); return(await Task.FromResult(Json(list))); }
public async Task <IList <Drink> > GetDrinks(string firstLetter) { return(await _data.GetDrinks(firstLetter)); }