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(); }
public IHttpActionResult Put(CtNivelTres _CtNivelTres) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } BO.AlterarCtNivelTres(_CtNivelTres); return(Updated(_CtNivelTres)); }
public IHttpActionResult Post(CtNivelTres _CtNivelTres) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } BO.AdicionarCtNivelTres(_CtNivelTres); return(Created(_CtNivelTres)); }
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)); }
public IHttpActionResult Delete(CtNivelTres _CtNivelTres) { BO.EliminarCtNivelTres(_CtNivelTres); return(Content(HttpStatusCode.NoContent, "Deleted")); }
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)); }
public void AlterarCtNivelTres(CtNivelTres _CtNivelTres) { DAO.Update(_CtNivelTres); DAO.UnitOfWork.Commit(); }
public void AdicionarCtNivelTres(CtNivelTres _CtNivelTres) { DAO.Insert(_CtNivelTres); DAO.UnitOfWork.Commit(); }
public CtNivelTres RecuperarCtNivelTres(int _CodEmpr, int _CodPlanoCont, int _CodNivel1, int _CodNivel2, int _CodNivel3) { CtNivelTres _Result = DAO.RecuperarCtNivelTres(_CodEmpr, _CodPlanoCont, _CodNivel1, _CodNivel2, _CodNivel3); return(_Result); }