public JsonResult Deletar(SCMServicosBE obj) { var serv = new SCMServicosBLL(); serv.Delete(obj); return(Json(true, JsonRequestBehavior.AllowGet)); }
public JsonResult Cadastrar(SCMServicosBE obj) { var serv = new SCMServicosBLL(); if (obj.ser_id == 0) { obj.cat_id = TipoServicosCadastrados.Sistema_SCM.GetDescription(); obj.conf_id = (int)Session[Globais.Helper.Globais.SessionSistemaConfId]; serv.Insert(obj); } else { serv.Update(obj); } return(Json(true, JsonRequestBehavior.AllowGet)); }
public bool Delete(SCMServicosBE obj) { return(new SCMServicosDao().Delete(obj).Value); }
public bool Update(SCMServicosBE obj) { return(new SCMServicosDao().Update(obj).Value); }
public int Insert(SCMServicosBE obj) { return(new SCMServicosDao().Insert(obj)); }
public SCMServicosBE SelectID(SCMServicosBE obj) { return(new SCMServicosDao().Select <SCMServicosBE>(obj).FirstOrDefault <SCMServicosBE>()); }
public List <SCMServicosBE> Select(SCMServicosBE obj) { return(new SCMServicosDao().Select <SCMServicosBE>(obj).ToList()); }
public JsonResult SelectId(SCMServicosBE obj) { return(Json(new SCMServicosBLL().SelectID(obj), JsonRequestBehavior.AllowGet)); }