public static bool ValidaEliminacionVacaciones(DTO.VacacionesDTO theVacacionesDTO, ref DataTable pobjDatatable) { bool retorno = false; YouCom.Service.BD.SQLHelper wobjSQLHelper = new YouCom.Service.BD.SQLHelper(); wobjSQLHelper.SetParametro("@idVacaciones", SqlDbType.VarChar, 20, theVacacionesDTO.IdVacaciones); try { //==================================================================================== if (wobjSQLHelper.Ejecutar("validaEliminacionVacaciones", "YouCom", pobjDatatable) <= 0) { retorno = false; } else { retorno = true; } } catch (Exception eobjException) { throw eobjException; } return(retorno); }
public static bool Update(DTO.VacacionesDTO myVacacionesDTO) { bool resultado = VacacionesDAL.Update(myVacacionesDTO); return(resultado); }
public static bool Insert(DTO.VacacionesDTO myVacacionesDTO) { bool resultado = VacacionesDAL.Insert(myVacacionesDTO); return(resultado); }