public Boolean EliminarBD(int idEmpresa, decimal idEmpleado, int anioFiscal, ref string msg) { try { using (EntitiesRoles db = new EntitiesRoles()) { db.ExecuteStoreCommand("delete from dbo.ro_rdep_detalle where IdEmpresa =" + idEmpresa.ToString() + " AND IdEmpleado=" + idEmpleado.ToString() + " AND AnioFiscal=" + anioFiscal.ToString() ); } return(true); } catch (Exception ex) { string arreglo = 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(), "", arreglo, "", "", "", "", "", DateTime.Now); mensaje = msg = ex.InnerException + " " + ex.Message; oDataLog.Guardar_Log_Error(Log_Error_sis, ref mensaje); return(false); } }