Exemple #1
0
 public ActionResult Edit(int id)
 {
     try
     {
         var listTypes = _generalFunctions.GetListType("Menü Yeri");
         var model     = new MenusVM
         {
             Menus    = _menusService.GetById(id),
             MenuInfo = _menuInfoService.Get(m => m.MenuID == id),
             ListType = listTypes
         };
         return(View(model));
     }
     catch (Exception ex)
     {
         TempData.Add("message", "Menü güncelleme sayfası yüklenirken hata ile karşılaşıldı. Hata: " + ex.Message);
         return(View());
     }
 }