public IActionResult Edit(int id) { var model = _resturent.GetById(id); var viewModel = new ResturentViewModel { Resturent = model, Cusines = _htmlHelper.GetEnumSelectList <CusineType>(), }; return(View(viewModel)); }
public IActionResult Create() { var model = new Resturent(); var viewModel = new ResturentViewModel { Cusines = _htmlHelper.GetEnumSelectList <CusineType>(), Resturent = model, }; return(View(viewModel)); }