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));
        }
Exemplo n.º 3
0
 public bool Delete(SCMServicosBE obj)
 {
     return(new SCMServicosDao().Delete(obj).Value);
 }
Exemplo n.º 4
0
 public bool Update(SCMServicosBE obj)
 {
     return(new SCMServicosDao().Update(obj).Value);
 }
Exemplo n.º 5
0
 public int Insert(SCMServicosBE obj)
 {
     return(new SCMServicosDao().Insert(obj));
 }
Exemplo n.º 6
0
 public SCMServicosBE SelectID(SCMServicosBE obj)
 {
     return(new SCMServicosDao().Select <SCMServicosBE>(obj).FirstOrDefault <SCMServicosBE>());
 }
Exemplo n.º 7
0
 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));
 }