Example #1
0
        public void EliminarCtNivelTres(CtNivelTres _CtNivelTres)
        {
            CtNivelTres _Result = null;

            _Result = DAO.FindByPrimaryKey(_CtNivelTres.cod_empr, _CtNivelTres.cod_plano_cont, _CtNivelTres.cod_nivel1, _CtNivelTres.cod_nivel2, _CtNivelTres.cod_nivel3);

            DAO.Delete(_Result);
            DAO.UnitOfWork.Commit();
        }
Example #2
0
        public IHttpActionResult Put(CtNivelTres _CtNivelTres)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            BO.AlterarCtNivelTres(_CtNivelTres);

            return(Updated(_CtNivelTres));
        }
Example #3
0
        public IHttpActionResult Post(CtNivelTres _CtNivelTres)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            BO.AdicionarCtNivelTres(_CtNivelTres);

            return(Created(_CtNivelTres));
        }
Example #4
0
        public IHttpActionResult Patch(CtNivelTres _CtNivelTres)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            Delta <CtNivelTres> _Delta = new Delta <CtNivelTres>();

            _Delta.CopyChangedValues(_CtNivelTres);

            _Delta.Patch(_CtNivelTres);
            return(Updated(_CtNivelTres));
        }
Example #5
0
 public IHttpActionResult Delete(CtNivelTres _CtNivelTres)
 {
     BO.EliminarCtNivelTres(_CtNivelTres);
     return(Content(HttpStatusCode.NoContent, "Deleted"));
 }
Example #6
0
        public IHttpActionResult Get(int CodEmpr, int CodPlanoCont, int CodNivel1, int CodNivel2, int CodNivel3)
        {
            CtNivelTres _Result = BO.RecuperarCtNivelTres(CodEmpr, CodPlanoCont, CodNivel1, CodNivel2, CodNivel3);

            return(Ok(_Result));
        }
Example #7
0
 public void AlterarCtNivelTres(CtNivelTres _CtNivelTres)
 {
     DAO.Update(_CtNivelTres);
     DAO.UnitOfWork.Commit();
 }
Example #8
0
 public void AdicionarCtNivelTres(CtNivelTres _CtNivelTres)
 {
     DAO.Insert(_CtNivelTres);
     DAO.UnitOfWork.Commit();
 }
Example #9
0
        public CtNivelTres RecuperarCtNivelTres(int _CodEmpr, int _CodPlanoCont, int _CodNivel1, int _CodNivel2, int _CodNivel3)
        {
            CtNivelTres _Result = DAO.RecuperarCtNivelTres(_CodEmpr, _CodPlanoCont, _CodNivel1, _CodNivel2, _CodNivel3);

            return(_Result);
        }