public JsonResult DeletarPagina(GlobaisModulosPagesBE obj) { try { new GlobaisModulosPagesBLL().Delete(obj); return(Json(true, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(false, JsonRequestBehavior.AllowGet)); } }
public JsonResult CadastroPage(GlobaisModulosPagesBE obj) { try { if (obj.modPage_id == 0) { new GlobaisModulosPagesBLL().Insert(obj); } else { new GlobaisModulosPagesBLL().Update(obj); } return(Json(true, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(false, JsonRequestBehavior.AllowGet)); } }
public bool Delete(GlobaisModulosPagesBE obj) { return(new GlobaisModulosPagesDao().Delete(obj).Value); }
public GlobaisModulosPagesBE Insert(GlobaisModulosPagesBE obj) { obj.mod_id = new GlobaisModulosPagesDao().Insert(obj); return(obj); }
public GlobaisModulosPagesBE SelectId(GlobaisModulosPagesBE obj) { return(new GlobaisModulosPagesDao().SelectId <GlobaisModulosPagesBE>(obj)); }
public List <GlobaisModulosPagesBE> Select(GlobaisModulosPagesBE obj) { return(new GlobaisModulosPagesDao().Select <GlobaisModulosPagesBE>(obj).ToList()); }