// GET: MenuItems/Details/5 public async Task <ActionResult> Details(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } ListItemLocal listItemLocal = await ListService.DetailsAsync(id.Value); if (listItemLocal == null) { return(HttpNotFound()); } var restType = ListService.GetRestaurantType(listItemLocal.Type); if (restType != null) { listItemLocal.TypeName = restType.Name; } return(View(listItemLocal)); }