public IActionResult Index() { var model = _restaurent.GetAll(); //return new ObjectResult(model); return(View(model)); }
public IActionResult Index() { var model = new HomeRestaurentViewModel(); model.Restaurents = _restaurent.GetAll(); model.CurrentMessage = _greeter.GetResponseMessage(); return(View(model)); }
public ViewResult Index() { var restaurent = new RestaurentViewModel(); restaurent.Restaurents = _restaurentData.GetAll(); restaurent.CurrentGreeting = _greeter.GetAllGreetings(); return(View(restaurent)); }