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