Exemplo n.º 1
0
        public IActionResult Add(int id = 0)
        {
            Sys_Navigations sys_Navigations = new Sys_Navigations();

            if (id != 0)
            {
                sys_Navigations = sysNav.List(p => p.Id == id).FirstOrDefault();
            }
            return(View(sys_Navigations));
        }
Exemplo n.º 2
0
 public IActionResult Add(Sys_Navigations model)
 {
     if (model.Id == 0)
     {
         sysNav.Add(model);
     }
     else
     {
         sysNav.Update(model);
     }
     sysNav.Commit();
     return(Json(""));
 }