예제 #1
0
        public bool Cambiar_estado_cancelada(int idEmpresa, int IdNomina, int idnomina_tipo, DateTime fecha_inicio, DateTime fecha_fin)
        {
            try
            {
                using (EntitiesRoles db = new EntitiesRoles())
                {
                    db.sprol_CancelarNovedades_Prestamos(idEmpresa, IdNomina, idnomina_tipo, fecha_inicio, fecha_fin);
                }

                return(true);
            }
            catch (Exception ex)
            {
                string array = ToString();
                tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
                tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", array, "", "", "", "", "", DateTime.Now);
                oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje);
                mensaje = ex.InnerException + " " + ex.Message;
                throw new Exception(ex.InnerException.ToString());
            }
        }