public void EliminarCtNivelUm(CtNivelUm _CtNivelUm) { CtNivelUm _Result = null; _Result = DAO.FindByPrimaryKey(_CtNivelUm.cod_empr, _CtNivelUm.cod_plano_cont, _CtNivelUm.cod_nivel1); DAO.Delete(_Result); DAO.UnitOfWork.Commit(); }
public IHttpActionResult Put(CtNivelUm _CtNivelUm) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } BO.AlterarCtNivelUm(_CtNivelUm); return(Updated(_CtNivelUm)); }
public IHttpActionResult Post(CtNivelUm _CtNivelUm) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } BO.AdicionarCtNivelUm(_CtNivelUm); return(Created(_CtNivelUm)); }
public IHttpActionResult Patch(CtNivelUm _CtNivelUm) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } Delta <CtNivelUm> _Delta = new Delta <CtNivelUm>(); _Delta.CopyChangedValues(_CtNivelUm); _Delta.Patch(_CtNivelUm); return(Updated(_CtNivelUm)); }
public IHttpActionResult Delete(CtNivelUm _CtNivelUm) { BO.EliminarCtNivelUm(_CtNivelUm); return(Content(HttpStatusCode.NoContent, "Deleted")); }
public IHttpActionResult Get(int CodEmpr, int CodPlanoCont, int CodNivel1) { CtNivelUm _Result = BO.RecuperarCtNivelUm(CodEmpr, CodPlanoCont, CodNivel1); return(Ok(_Result)); }
public void AlterarCtNivelUm(CtNivelUm _CtNivelUm) { DAO.Update(_CtNivelUm); DAO.UnitOfWork.Commit(); }
public void AdicionarCtNivelUm(CtNivelUm _CtNivelUm) { DAO.Insert(_CtNivelUm); DAO.UnitOfWork.Commit(); }
public CtNivelUm RecuperarCtNivelUm(int _CodEmpr, int _CodPlanoCont, int _CodNivel1) { CtNivelUm _Result = DAO.RecuperarCtNivelUm(_CodEmpr, _CodPlanoCont, _CodNivel1); return(_Result); }